I want to open some .ply files and save them as .vtp files in a python
script.

For reading vtp's, I've used
reader = servermanager.sources.XMLPolyDataReader(FileName=ModelFilename)

I saw there was a vtkPly class, so I tried
    reader = servermanager.sources.PlyFile(FileName=ModelFilename)
and it says "no attribute PlyFile"

For writing a vtp, I thought it may be something like
rep.XMLPolyDataWriter(NewFilename)
or
servermanager.sources.XMLPolyDataWriter(NewFilename)

but both give errors.

Anyone know how to do this?

Also, I'm curious why Paraview does not have the ability to import .obj
files? That seems to be what many algorithms take as input and give as
output, so I find myself using Blender to convert obj to ply, then Paraview
to convert ply to vtp. Does anyone else think it would be nice to support
.obj's?

Thanks,

David
_______________________________________________
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

Reply via email to