<html><head></head><body><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div></div>
            <div>As a work-around could you not just change your length unit to km? Or do you lose accuracy then?</div><div><br></div><div>Todd.<br></div><div><br></div>
            
            <div id="yahoo_quoted_3575534083" class="yahoo_quoted">
                <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                    
                    <div>
                        On Friday, December 15, 2017, 2:59:58 PM GMT+13, kenichiro yoshimi <rccm.kyoshimi@gmail.com> wrote:
                    </div>
                    <div><br></div>
                    <div><br></div>
                    <div><div dir="ltr">Hello,<br clear="none"><br clear="none">Usually setting double precision for the transform filter solves the problem.<br clear="none"> transformFilter.SetOutputPointsPrecision(vtk.vtkAlgorithm.DOUBLE_PRECISION)<br clear="none"><br clear="none">But in your case, switching to double is not sufficient for preventing<br clear="none">the loss of trailing digits because the difference in the absolute<br clear="none">value is too large between the coordinates of text polydata with 1e-10<br clear="none">and the translation-value with 1e+7. It might be more practical to<br clear="none">display string as labels using vtkLabeledDataMapper and so on.<br clear="none"><br clear="none">Thanks<br clear="none"><br clear="none">2017-12-15 1:10 GMT+09:00 Alexey Pechnikov <<a shape="rect" ymailto="mailto:pechnikov@mobigroup.ru" href="mailto:pechnikov@mobigroup.ru">pechnikov@mobigroup.ru</a>>:<br clear="none">> This sample code works correct:<br clear="none">><br clear="none">> transform = vtk.vtkTransform()<br clear="none">> transform.Translate(0, 100, 0)<br clear="none">><br clear="none">> but the same code produces bad geometry:<br clear="none">><br clear="none">> transform = vtk.vtkTransform()<br clear="none">> transform.Translate(0,10000000, 0)<br clear="none">><br clear="none">> P.S. Yes, I really need y=10000000 for GIS data. And I can use the same<br clear="none">> coordinates for VTK data arrays without any problem.<br clear="none">><br clear="none">><br clear="none">> There is the full test script below:<br clear="none">><br clear="none">> import sys<br clear="none">><br clear="none">> sys.path.append("/usr/local/Cellar/vtk/8.0.1_1//lib/python2.7/site-packages/vtk/")<br clear="none">><br clear="none">><br clear="none">> import vtk<br clear="none">><br clear="none">><br clear="none">> text = vtk.vtkVectorText()<br clear="none">><br clear="none">> text.SetText('PLD003')<br clear="none">><br clear="none">><br clear="none">> # Set up a transform to move the label to a new position.<br clear="none">><br clear="none">> transform = vtk.vtkTransform()<br clear="none">><br clear="none">> transform.Identity()<br clear="none">><br clear="none">> transform.Translate(0, 10000000, 0)<br clear="none">><br clear="none">> #transform.Translate(100,100,100)<br clear="none">><br clear="none">><br clear="none">> transformFilter = vtk.vtkTransformPolyDataFilter()<br clear="none">><br clear="none">> for x in range(100):<br clear="none">><br clear="none">>     transformFilter.SetTransform(transform)<br clear="none">><br clear="none">> transformFilter.SetInputConnection(text.GetOutputPort())<br clear="none">><br clear="none">><br clear="none">> writer = vtk.vtkXMLPolyDataWriter()<br clear="none">><br clear="none">> writer.SetInputConnection(transformFilter.GetOutputPort())<br clear="none">><br clear="none">> writer.SetFileName('text.vtp')<br clear="none">><br clear="none">> writer.SetDataModeToAscii()<br clear="none">><br clear="none">> writer.Write()<br clear="none">><br clear="none">><br clear="none">> --<br clear="none">> Best regards, Alexey Pechnikov.<br clear="none">><br clear="none">> _______________________________________________<br clear="none">> Powered by www.kitware.com<br clear="none">><br clear="none">> Visit other Kitware open-source projects at<br clear="none">> <a shape="rect" href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br clear="none">><br clear="none">> Please keep messages on-topic and check the VTK FAQ at:<br clear="none">> <a shape="rect" href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br clear="none">><br clear="none">> Search the list archives at: <a shape="rect" href="http://markmail.org/search/?q=vtkusers" target="_blank">http://markmail.org/search/?q=vtkusers</a><br clear="none">><br clear="none">> Follow this link to subscribe/unsubscribe:<br clear="none">> <a shape="rect" href="https://vtk.org/mailman/listinfo/vtkusers" target="_blank">https://vtk.org/mailman/listinfo/vtkusers</a><div class="yqt5836351955" id="yqtfd60642"><br clear="none">><br clear="none">_______________________________________________<br clear="none">Powered by www.kitware.com<br clear="none"><br clear="none">Visit other Kitware open-source projects at <a shape="rect" href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br clear="none"><br clear="none">Please keep messages on-topic and check the VTK FAQ at: <a shape="rect" href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br clear="none"><br clear="none">Search the list archives at: <a shape="rect" href="http://markmail.org/search/?q=vtkusers" target="_blank">http://markmail.org/search/?q=vtkusers</a><br clear="none"><br clear="none">Follow this link to subscribe/unsubscribe:<br clear="none"><a shape="rect" href="https://vtk.org/mailman/listinfo/vtkusers" target="_blank">https://vtk.org/mailman/listinfo/vtkusers</a><br clear="none"></div></div></div>
                </div>
            </div></div></body></html>