<div dir="ltr">This smells very much like the vtk_array data being interpreted as single precision even though<div>```</div><div>  Data type: double<br></div><div>```</div><div>Cheers,</div><div>Nico</div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Dec 17, 2015 at 2:23 AM Nico Schlömer <<a href="mailto:nico.schloemer@gmail.com">nico.schloemer@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi everyone,<div><br></div><div>with</div><div>```</div><div><div>import numpy</div><div>import vtk</div><div>from vtk.util import numpy_support</div><div><br></div><div>mesh = vtk.vtkUnstructuredGrid()</div><div><br></div><div># add points to mesh</div><div>points = numpy.array([</div><div>    [0.123456789, 3.14159265, 0.0]</div><div>    ])</div><div>vtk_points = vtk.vtkPoints()</div><div>vtk_array = numpy_support.numpy_to_vtk(points)</div><div>vtk_points.SetData(vtk_array)</div><div>mesh.SetPoints(vtk_points)</div><div><br></div><div># write to VTK</div><div>writer = vtk.vtkUnstructuredGridWriter()</div><div>writer.SetFileTypeToASCII()</div><div>writer.SetFileName('test.vtk')</div><div>writer.SetInputData(mesh)</div><div>writer.Write()</div></div><div>```</div><div>I noticed that, although the `point` is given with some precision, the output `test.vtk` file only contains 6 digits of accuracy,</div><div>```</div><div>0.123457 3.14159 0<br></div><div>```</div><div>The numpy data type hosts 8 digits.</div><div><br></div><div>Is this a bug or expected? How to mitigate?</div><div><br></div><div>Cheers,</div><div>Nico</div></div></blockquote></div>