|
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.
|