[vtkusers] How to check if a vtkPolyData object is a closed surface
David Doria
daviddoria+vtk at gmail.com
Wed Apr 14 15:59:45 EDT 2010
On Wed, Apr 14, 2010 at 3:44 PM, David Gobbi <david.gobbi at gmail.com> wrote:
> Hi Roman,
>
> The vtkFeatureEdges filter can check for closed surfaces. Use the
> following settings:
>
> featureEdges->FeatureEdgesOff()
> featureEdges->BoundaryEdgesOn()
> featureEdges->NonManifoldEdgesOn()
>
> If you do featureEdges->Update(), then
> featureEdges->GetOutput()->GetNumberOfCells() will return the number
> of open edges for the data.
>
> The output of vtkFeatureEdges is a set of lines that correspond to the
> problem edges, so you can put the output of vtkFeatureEdges into a
> mapper & actor so that you can superimpose the problem edges on top of
> your data set.
>
> David
Here is a short demonstration of David G's recommendation:
http://www.vtk.org/Wiki/VTK/Examples/ClosedSurface
Thanks,
David D.
More information about the vtkusers
mailing list