[vtkusers] vtkPolyData - close holes in an object

David Doria daviddoria at gmail.com
Fri Jun 1 15:45:38 EDT 2012


On Fri, Jun 1, 2012 at 3:37 PM, mike at gagnon.com <mike at gagnon.com> wrote:
> Well- I was hoping there was some view function that could treat a 3D object
> as a solid.  This function would automatically add the necessary triangles.
> Do you know what I mean by a convex hull?  It's like if you hammer a bunch
> of nails on a piece of wood- the shape you get when you put an elastic
> around them is their convex hull....  And you get a closed object...

There are a few ways demonstrated on the wiki to get a convex hull:

http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ConvexHull_vtkHull
http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ConvexHull_ShrinkWrap
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Modelling/Delaunay3D

David



More information about the vtkusers mailing list