Commit cc08149d authored by ozantonkal's avatar ozantonkal

remove redundant statements

parent 658e4c5e
...@@ -515,9 +515,6 @@ temp_viz::CloudWidget::CloudWidget(InputArray _cloud, const Color &color) ...@@ -515,9 +515,6 @@ temp_viz::CloudWidget::CloudWidget(InputArray _cloud, const Color &color)
// Set the cells and the vertices // Set the cells and the vertices
vertices->SetCells (nr_points, cells); vertices->SetCells (nr_points, cells);
Color c = vtkcolor(color);
polydata->GetPointData ()->SetScalars (0);
vtkSmartPointer<vtkDataSetMapper> mapper = vtkSmartPointer<vtkDataSetMapper>::New (); vtkSmartPointer<vtkDataSetMapper> mapper = vtkSmartPointer<vtkDataSetMapper>::New ();
mapper->SetInput (polydata); mapper->SetInput (polydata);
...@@ -531,8 +528,9 @@ temp_viz::CloudWidget::CloudWidget(InputArray _cloud, const Color &color) ...@@ -531,8 +528,9 @@ temp_viz::CloudWidget::CloudWidget(InputArray _cloud, const Color &color)
actor->SetNumberOfCloudPoints (int (std::max<vtkIdType> (1, polydata->GetNumberOfPoints () / 10))); actor->SetNumberOfCloudPoints (int (std::max<vtkIdType> (1, polydata->GetNumberOfPoints () / 10)));
actor->GetProperty ()->SetInterpolationToFlat (); actor->GetProperty ()->SetInterpolationToFlat ();
actor->GetProperty ()->BackfaceCullingOn (); actor->GetProperty ()->BackfaceCullingOn ();
actor->GetProperty ()->SetColor(c.val);
actor->SetMapper (mapper); actor->SetMapper (mapper);
setColor(color);
} }
/////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment