[vtkusers] Help(About PLY)

David Doria daviddoria at gmail.com
Sat Mar 12 11:53:22 EST 2011


On Fri, Mar 11, 2011 at 9:17 PM, hbfyf <hbfyf at qq.com> wrote:
> I have succeed in reading PLY.Can you help me how to analyse PLY.Such as
> getting point value of every points and getting normal vector of every
> triangles.Thanks!

There are many examples on the wiki:
http://www.vtk.org/Wiki/VTK/Examples/Cxx

Some that may get you started:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PolyDataExtractNormals
http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PolyDataCellNormals

To get the points, use polydata->GetPoints(). Then you can use
operations here:
http://www.vtk.org/doc/nightly/html/classvtkPoints.html like
GetPoint();

David



More information about the vtkusers mailing list