remove redundant statements
This commit is contained in:
parent
658e4c5e97
commit
cc08149d7c
@ -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)
|
|||||||
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
Loading…
x
Reference in New Issue
Block a user