I use a library that gives me at the end the vtkpoints. Now I would like to extract points
from them. But all the method available from VTKPoints require point id, which i do not know.
Is there a way of doing it?
I use a library that gives me at the end the vtkpoints. Now I
Share
I can’t offer a definitive answer, since the VTKPoints documentation doesn’t discuss the values of the point ids and I don’t have any experience with this. However, all of the examples I have seen just use integers in the range
[0..NumberOfPoints-1]as the point ids, so it would seem that what you are doing is perfectly reasonable (note, however, that your commentI am using the indexes: 0..NumberOfPointsshould be0..NumberOfPoints-1).