[vtkusers] Deleting a point from vtkPoints using GetData() method

PhD Andrea Vitali andrea.vitali1 at unibg.it
Mon Mar 12 13:42:57 EDT 2018


Dear All, 

the generic question is relative to "how to delete a point from a polydata".
I found several examples in which the point can be deleted by copying the
points array without the point that I want to remove.

In this case, I would like to delete a single point with no copy from an
array to another one. I saw there is the GetData() method with which it is
possible to remove a tuple by index.

This is an example:

poly->GetPoints()->GetData()->RemoveTuple(i);

There are no errors, but the polydata is not rendered. I think there are
some issues relative to topology or during VBO/IBO updating. I think I have
to do other operation in order to correctly visualize my polydata. 

Do you have any idea how to do it?

I hope it is not too general to really understand the problem.

Thanks in advance,

Andrea



--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html


More information about the vtkusers mailing list