[vtk-developers] Features of vtkDataArray

David Cole david.cole at kitware.com
Tue Sep 27 08:02:24 EDT 2005


Perhaps in the documentation for the method you could say exactly that: 
"WARNING: This method is relatively slow on array type data structures 
and should be used sparingly. If used repeatedly, it will be a 
performance bottleneck."

Andy Cedilnik wrote:

> 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
> _______________________________________________
> vtk-developers mailing list
> vtk-developers at vtk.org
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>




More information about the vtk-developers mailing list