[vtkusers] float vs double

Philipp.Batchelor Philipp.Batchelor at kcl.ac.uk
Fri Apr 6 06:20:49 EDT 2001


Hi,

I would like to  work entirely with doubles instead of floats,
e.g. vtkAttributeData has a 'SetDataTypeToDouble()' method, but 
if for example you call:
'tensors->GetTensor(id)->GetColumn(0)' or
'scalars->SetScalar(id,value)' you can only get/set
[a pointer to] floats. Is there an elegant "vtk way" to ensure
that the data is always treated as doubles?

Philipp Batchelor





More information about the vtkusers mailing list