[vtkusers] vtkTransformFilter and precisions

Murat Aydın murat.aydin at netcad.com.tr
Wed Feb 3 05:01:02 EST 2010


Hi,

Precisions change after executing vtkTransformFilter. My code is the following:

vtk.vtkTransform transformRotate3 = new vtk.vtkTransform();
transformRotate3.RotateWXYZ(45.0, 1, 0, 0);
vtk.vtkTransformFilter transformFilterRotate3 = new vtk.vtkTransformFilter();
transformFilterRotate3.SetTransform(transformRotate3);
transformFilterRotate3.SetInputConnection(transformFilterRotate2.GetOutputPort());

transformFilterRotate2 is another transformFilter.

Distance between points[0] and points[4] is 20.0 in  transformFilterRotate2.GetUnstructuredGridOutput()
After executing  transformFilterRotate3
distance between points[0] and points[4] is 20.032103138407294

I am getting points by the following code:

transformFilterRotate2.GetUnstructuredGridOutput().GetPoint(0)
transformFilterRotate2.GetUnstructuredGridOutput().GetPoint(4)

transformFilterRotate3.GetUnstructuredGridOutput().GetPoint(0)
transformFilterRotate3.GetUnstructuredGridOutput().GetPoint(4)


why the distance changed from 20.0 to 20.032103138407294? How can i prevent this?

Kind Regards,

murat aydin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100203/121f457e/attachment.htm>


More information about the vtkusers mailing list