[vtk-developers] Features of vtkDataArray

Andy Cedilnik andy.cedilnik at kitware.com
Mon Sep 26 14:36:59 EDT 2005


Hi All,

For my class I need to remove i-th tuple from the vtkDataArray. I was 
thinking about adding this functionality to vtkDataArray. Maybe 
something like:

int vtkDataArray::RemoveTuple(vtkIdType id);

This would perform two tasks:

1. Run memcpy on the data and shifted everything pass the item
2. Resize the vtkDataArray

Though this operation is relatively slow on the array type data 
structures, used rarely can be very useful.

I don't see any backward compatibility issues.

Any comments?

       Andy



More information about the vtk-developers mailing list