[Paraview] load obj file and display via Paraview python shell

Pat Marion pat.marion at kitware.com
Tue Dec 4 17:52:27 EST 2012


The python code is much simpler in ParaView:

OpenDataFile('/path/to/data.obj')
Show()


For more commands, try:

help(paraview.simple)

You can also do: help(<any function or variable name>)

Pat

On Wed, Dec 5, 2012 at 8:15 AM, Li Guan <li.9uan at gmail.com> wrote:

> Hi guys,
>
> I am trying to load a wavefront obj file into paraview and display it
> using only python shell scripts.
>
> I searched online and only find
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadOBJ
> This is vtk C++ code, and I am trying to convert them to python script. I
> got stuck at trying to find the correct way to initiate a
> vtkPolyDataMapper... I wonder if there is some similar example to load such
> model using only python shell commands.
>
> Many thanks in advance,
>
> Li
>
> _______________________________________________
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20121205/78c0c31b/attachment.htm>


More information about the ParaView mailing list