Brand new to VTK I am using the C# wrapper (Activiz) to build an interactive application.
I’m trying to figure out how to delete points from vtkPolyData (more generally, how to efficiently use this data structure in an interactive context). It seems the only option is to replace the points in bulk. But is there a better approach?
There seems to be a DeletePoints function that simply marks points for deletion (uses vtkCellLinks internally), but how do we use this to actually delete a point?
Another approach I was considering is the following:
- Mark points for deletion
- Construct a mapping from old index to new index (post deletion)
- Apply the index mapping to the cells
- Delete cells
- Use the mapping to copy points to the correct location
To do the above I need access to the internal data structures I think, but I can’t figure out how to do this.