<div dir="ltr"><div><div>Hello Tiago,<br><br>Using Fetch you should end up with a vtkPolyData object which have accessors to triangle point ids (using GetPolys() then a traversal on the vtkCellArray or directly using GetCellPoints(). Point coordinates can be retrieved using GetPoint() function. </div>So could you be more specific on how you call servermanager.Fetch() and what you are doing next to retrieve your normals?<br><br></div><div>Best,<br></div><div>Joachim<br></div><br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><b>Joachim Pouderoux</b><font size="2">, <font size="1">PhD</font></font><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font size="1"><i>Technical Expert - Scientific Computing Team</i></font><br><b><font size="1"><a href="http://www.kitware.fr" target="_blank">Kitware SAS</a></font></b><br></blockquote>
</div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">2017-02-14 7:32 GMT-04:00 ufdup <span dir="ltr"><<a href="mailto:ufdup89@gmail.com" target="_blank">ufdup89@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span style="color:rgb(0,0,0);font-family:helvetica;font-size:12px">Dear all,</span><br style="color:rgb(0,0,0);font-family:helvetica;font-size:12px"><br style="color:rgb(0,0,0);font-family:helvetica;font-size:12px"><span style="color:rgb(0,0,0);font-family:helvetica;font-size:12px">I have a contour in Paraview that I would like to export to Matlab. In the past I’ve been doing this by generating a STL file which could be read in Matlab without any problems.</span><br style="color:rgb(0,0,0);font-family:helvetica;font-size:12px"><br style="color:rgb(0,0,0);font-family:helvetica;font-size:12px"><span style="color:rgb(0,0,0);font-family:helvetica;font-size:12px">However, now my STL files are quite large and reading in Matlab is really inefficient because of the STL standard way of writing. For my application it would be enough to right only the normals and the vertex of the triangles. </span><br style="color:rgb(0,0,0);font-family:helvetica;font-size:12px"><br style="color:rgb(0,0,0);font-family:helvetica;font-size:12px"><span style="color:rgb(0,0,0);font-family:helvetica;font-size:12px">I am working with the paraview.simple module and so far I can get the normals using the Filter ComputeNormals followed by a servermanager.Fetch(….). The vertex, however are still missing….</span><br style="color:rgb(0,0,0);font-family:helvetica;font-size:12px"><br style="color:rgb(0,0,0);font-family:helvetica;font-size:12px"><span style="color:rgb(0,0,0);font-family:helvetica;font-size:12px">Does anyone know how can I get this kind of information from Paraview using Python?</span><br style="color:rgb(0,0,0);font-family:helvetica;font-size:12px"><br style="color:rgb(0,0,0);font-family:helvetica;font-size:12px"><span style="color:rgb(0,0,0);font-family:helvetica;font-size:12px">Best Regards,</span><br style="color:rgb(0,0,0);font-family:helvetica;font-size:12px"><span style="color:rgb(0,0,0);font-family:helvetica;font-size:12px">Tiago</span><br></div>
<br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/<wbr>ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>