[Paraview] STL files: normal and vertex

Joachim Pouderoux joachim.pouderoux at kitware.com
Tue Feb 14 14:36:14 EST 2017


Hello Tiago,

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.
So could you be more specific on how you call servermanager.Fetch() and
what you are doing next to retrieve your normals?

Best,
Joachim


*Joachim Pouderoux*, PhD

*Technical Expert - Scientific Computing Team*
*Kitware SAS <http://www.kitware.fr>*


2017-02-14 7:32 GMT-04:00 ufdup <ufdup89 at gmail.com>:

> Dear all,
>
> 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.
>
> 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.
>
> 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….
>
> Does anyone know how can I get this kind of information from Paraview
> using Python?
>
> Best Regards,
> Tiago
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20170214/cb0ee5b5/attachment.html>


More information about the ParaView mailing list