[vtkusers] triangle mesh convertion
paws
paws at op.pl
Thu Apr 14 18:16:38 EDT 2011
Hi all!
I use Point Cloud Library to filter point clouds and mesh filtered
sub-clouds. Now I'm going to copy triangle mesh, which I received from PCL,
to vtkPolyData object. Than I could decimate my mesh using one of VTK
filters.
But I don't know how to create vtkPolyData triangle mesh from my dataset.
PCL triangle mesh is a vector of arrays of triangle vertices. I mean, I have
3 vertex coordinates of every triangle.
How to copy this structure to vtkPolyData?
I read these examples:
http://www.itk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/Triangle
http://www.itk.org/Wiki/VTK/Examples/Cxx/PolyData/TriangleArea
But it seems, that triangles in vtkPolyData have to be conected each other
(have common vertices)...
Enyone could help me?
Thank you in advance,
paws
--
View this message in context: http://vtk.1045678.n5.nabble.com/triangle-mesh-convertion-tp4304272p4304272.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list