ParaView/Python/Convert PLY to VTP
From KitwarePublic
< ParaView
Jump to navigationJump to search
<source lang="python">
- !/usr/bin/pvpython
from paraview.simple import *
- read ply
reader = PLYReader(FileName="input.ply")
- write vtp
writer = XMLPolyDataWriter(reader, FileName="output.vtp") writer.UpdatePipeline() </source>