A VTK Python script would do the job fine. You have to import vtk, create one or more vtkPolydata and then write them out using a writer. There are a few formats to choose from. I would use vtkPolyDataWriter to write a VTK file. -berk
On Mon, May 11, 2009 at 7:28 PM, Olumide <[email protected]> wrote: > Hello, > > Being a bit of a VTK/Paraview newbie, I'm having a little difficulty > selecting the right tool for the job. I've got a number of polygonal > primitives; lines, spheres, cylinders etc, in a 3d application and I would > like to export and view these objects in Paraview. Because the 3d app is > scriptable, I can write a plugin to export the primitives as VTK geometry > data, but I shrink at the thought of handling low level operations that > would be required. Therefore I'm considering another option namely: to have > the 3d app write a VTK-Python or Paraview-Servermanager script based on the > primitives in the scene. The problem now, is which scripting technique is > better for the task, bearing in mind that what I would like to do is to view > the primitives in Paraview. > > Initially, I started out writing a Paraview-Servermanager script, but I > later realized that a VTK-Python script might do the job as well, _if_ > VTK-Python scripts can export programmatically created scene data. > > Please advise. > > Thanks. > > - Olumide > > _______________________________________________ > 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
