[vtkusers] Declare and initialize a vtkPointSet with vtkPoints

gouc claude.goubet at e.ujf-grenoble.fr
Mon Jun 6 06:14:24 EDT 2016


Hello,

I need to use a vtkPointSet in order to create a mesh.

Problem, vtkPointSet has a private constructor.

I then used a vtkPolyData initialised as following:

vtkSmartPointer<vtkPolyData> points1Set =
vtkSmartPointer<vtkPolyData>::New();
points1Set->SetPoints(points1);

where points is of type vtkSmartPointer<vtkPoints> and contains 70 points.

In order to get a vtkPointSet, I use  vtkPointSet::SafeDownCast(points1Set)

The problem is that it seems that it seems to return an empty set of point.

What is a good way to generate a vtkPointSet from vtkPoints?

Thank you.




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


More information about the vtkusers mailing list