[vtk-developers] vtkDoubleArray::GetTuple(vtkIdType) returns float * but not doubl e * ??

Wilson, Andrew T atwilso at sandia.gov
Mon Nov 10 15:10:51 EST 2003


Is there a reason why vtkDoubleArray::GetTuple(vtkIdType i) can return a
pointer to floats but not to doubles?  This seems wrong, or at least a
breach of completeness: if there's a version that returns a float array,
shouldn't there be a version that returns a double array as well?  

Yes, you can accomplish something similar with one of the other GetTuple
functions, but it seems quite awkward to have different calling conventions
based on what precision you want.

Is there a reason not to implement a version that will return double * and
add it to the class?  Barring negative feedback, I'll write that later this
week, test it, then check it in.

-- Andy




More information about the vtk-developers mailing list