[vtkusers] How to check if a vtkPolyData object is a closed surface

Jorge Ballesteros jballesteros at motivando.me
Mon Apr 19 04:47:44 EDT 2010


Hi Roman,

You may want to take look at the vtkFeatureEdges Filter.

In VTK Examples:

http://www.cmake.org/Wiki/VTK/Examples/ClosedSurface




Roman Grothausmann wrote:
> Dear mailing list members,
> 
> 
> We want to check if our vtkPolyData surface is closed because the 
> normals from the output of vtkPolyDataNormals with AutoOrientNormalsOn 
> are not consistently pointing outwards. Strangely with 
> AutoOrientNormalsOff they all normals seem to be pointing outwards.
> We tried vtkSelectEnclosedPoints::IsSurfaceClosed() to check if our 
> vtkPolyData surface is closed but that results in an error when we set 
> CheckSurfaceOn() and Update the filter.
> Is there any other way to check if a surface is closed? It would be nice 
> if vtkPolyDataNormals had this functionality so that we don't need to 
> create some input points for vtkSelectEnclosedPoints.
> Calling vtkSelectEnclosedPoints::IsSurfaceClosed() without an instance 
> seems not to be possible in python, or is it?
> 
> Any help or hints on this are very much appreciated
> Roman
> 
> 



More information about the vtkusers mailing list