From cc08149d7cf3079fa62b88dede882cf6fb2e97ac Mon Sep 17 00:00:00 2001 From: ozantonkal Date: Mon, 8 Jul 2013 19:05:35 +0200 Subject: [PATCH] remove redundant statements --- modules/viz/src/simple_widgets.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/viz/src/simple_widgets.cpp b/modules/viz/src/simple_widgets.cpp index 6c6cba8..76c72e6 100644 --- a/modules/viz/src/simple_widgets.cpp +++ b/modules/viz/src/simple_widgets.cpp @@ -515,9 +515,6 @@ temp_viz::CloudWidget::CloudWidget(InputArray _cloud, const Color &color) // Set the cells and the vertices vertices->SetCells (nr_points, cells); - Color c = vtkcolor(color); - polydata->GetPointData ()->SetScalars (0); - vtkSmartPointer mapper = vtkSmartPointer::New (); mapper->SetInput (polydata); @@ -531,8 +528,9 @@ temp_viz::CloudWidget::CloudWidget(InputArray _cloud, const Color &color) actor->SetNumberOfCloudPoints (int (std::max (1, polydata->GetNumberOfPoints () / 10))); actor->GetProperty ()->SetInterpolationToFlat (); actor->GetProperty ()->BackfaceCullingOn (); - actor->GetProperty ()->SetColor(c.val); actor->SetMapper (mapper); + + setColor(color); } /////////////////////////////////////////////////////////////////////////////////////////////// -- 2.7.4