[vtk-developers] vtkDataArray::GetTuple(int i, double[3])

Berk Geveci berk.geveci at kitware.com
Sun Aug 22 15:39:37 EDT 2010


The length 3 is arbitrary isn't it? There is no requirement that a
tuple will be of length 3 or even  <= than 3.

On Sun, Aug 22, 2010 at 1:47 PM, David Doria <daviddoria+vtk at gmail.com> wrote:
> After a brief chat with Darshan on the users list, we would like to propose
> adding a function to vtkDataArray:
> void vtkDataArray::GetTuple(int i, double[3])
> It would work the same way that
> double vtkDataArray::GetComponent(int,int)
> currently works in the sense that no matter the underlying data type it
> would return a double. The idea is to be able to get a double array of a
> tuple from either a vtkDoubleArray or a vtkFloatArray.
>
> Thoughts?
>
> Thanks,
>
> David
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>
>



More information about the vtk-developers mailing list