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.9...@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 > >
_______________________________________________ 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