<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-9">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I noticed something. There is setDataTypeToDouble()
method in vtkPoints. The reason of precision loss may be that default dataType
of vtkPoints is float. How can i set default dataType of vtkUnstructured grid to
double? How can i change dataType of points? Thanks.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Kind Regards,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>murat</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=murat.aydin@netcad.com.tr
href="mailto:murat.aydin@netcad.com.tr">Murat Aydın</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=vtkusers@vtk.org
href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, February 03, 2010 12:01
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [vtkusers] vtkTransformFilter
and precisions</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Precisions change after executing
vtkTransformFilter. My code is the following:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>vtk.vtkTransform transformRotate3 = new
vtk.vtkTransform();<BR>transformRotate3.RotateWXYZ(45.0, 1, 0,
0);<BR>vtk.vtkTransformFilter transformFilterRotate3 = new
vtk.vtkTransformFilter();<BR>transformFilterRotate3.SetTransform(transformRotate3);<BR>transformFilterRotate3.SetInputConnection(transformFilterRotate2.GetOutputPort());</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>transformFilterRotate2 is another
transformFilter.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Distance between points[0] and points[4] is 20.0
in transformFilterRotate2.GetUnstructuredGridOutput()<BR>After
executing transformFilterRotate3<BR>distance between points[0] and
points[4] is 20.032103138407294</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I am getting points by the following
code:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>transformFilterRotate2.GetUnstructuredGridOutput().GetPoint(0)<BR>transformFilterRotate2.GetUnstructuredGridOutput().GetPoint(4)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>transformFilterRotate3.GetUnstructuredGridOutput().GetPoint(0)<BR>transformFilterRotate3.GetUnstructuredGridOutput().GetPoint(4)</FONT></DIV>
<DIV> </DIV><FONT face=Arial size=2>
<DIV><BR>why the distance changed from 20.0 to 20.032103138407294? How can i
prevent this?</DIV>
<DIV> </DIV>
<DIV>Kind Regards,</DIV>
<DIV> </DIV>
<DIV>murat aydin</FONT></DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>Powered by
www.kitware.com<BR><BR>Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html<BR><BR>Please keep messages
on-topic and check the VTK FAQ at:
http://www.vtk.org/Wiki/VTK_FAQ<BR><BR>Follow this link to
subscribe/unsubscribe:<BR>http://www.vtk.org/mailman/listinfo/vtkusers<BR></BLOCKQUOTE></BODY></HTML>