ParaView/Python/Convert PLY to VTP

From KitwarePublic
< ParaView
Revision as of 15:15, 29 September 2009 by Utkarsh (talk | contribs) (added footer)
Jump to navigationJump to search

<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]