[vtk-developers] Why is GetRange double* even for non double arrays?
David Doria
daviddoria+vtk at gmail.com
Mon May 17 09:17:00 EDT 2010
If I have an array like this:
vtkSmartPointer<vtkDoubleArray> distances =
vtkIntArray::SafeDownCast(polydata->GetPointData()->GetArray("Distances"));
It makes sense to do:
double range[2];
distances->GetRange(range);
But if the array is not a DoubleArray: e.g.
vtkSmartPointer<vtkIntArray> ids =
vtkIntArray::SafeDownCast(polydata->GetPointData()->GetArray("ids"));
shouldn't one be able to get the range like this:
int range[2];
ids->GetRange(range);
?
Thanks,
David
More information about the vtk-developers
mailing list