[vtkusers] Declare and initialize a vtkPointSet with vtkPoints

gouc claude.goubet at e.ujf-grenoble.fr
Tue Jun 7 04:35:55 EDT 2016


So I have my answer,

To create a vtkPolyData :

1/ I store the points (in my test it contains 70 points)
in the variable of type:
vtkSmartPointer<vtkPoints> points1;

2/ I create a vtkPolyData
vtkSmartPointer<vtkPolyData> points1Polydata =
vtkSmartPointer<vtkPolyData>::New();
points1Polydata->SetPoints(points1);

vtkPolyData inherits from vtkPointSet.



--
View this message in context: http://vtk.1045678.n5.nabble.com/Declare-and-initialize-a-vtkPointSet-with-vtkPoints-tp5738565p5738581.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list