ParaView/Python/Convert PLY to VTP: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
(New page: <source lang="python"> #!/usr/bin/pvpython from paraview.simple import * #read ply reader = PLYReader(FileName="input.ply") #write vtp writer = XMLPolyDataWriter(reader, FileName="outpu...)
 
(added footer)
Line 11: Line 11:
writer.UpdatePipeline()
writer.UpdatePipeline()
</source>
</source>
{{ParaView/Template/Footer}}

Revision as of 15:15, 29 September 2009

<source lang="python">

  1. !/usr/bin/pvpython

from paraview.simple import *

  1. read ply

reader = PLYReader(FileName="input.ply")

  1. write vtp

writer = XMLPolyDataWriter(reader, FileName="output.vtp") writer.UpdatePipeline() </source>


ParaView: [Welcome | Site Map]