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

Roman Grothausmann roman.grothausmann at helmholtz-berlin.de
Thu Apr 29 04:27:50 EDT 2010


David Doria wrote:
> 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
> 

Many thanks David G. for the idea and David D. for the example. With 
that we managed to find the reason why our surfaces were not closed.

Thanks a lot
Roman


-- 
Roman Grothausmann

Helmholtz-Zentrum Berlin für Materialien und Energie GmbH
Bereich Funktionale Materialien
Institut für angewandte Materialforschung
Hahn-Meitner-Platz 1
D-14109 Berlin	

Tel.: +49-(0)30-8062-2816
Fax.: +49-(0)30-8062-3059

Vorsitzender des Aufsichtsrats: Prof. Dr. Dr. h.c. mult. Joachim Treusch
Stellvertretende Vorsitzende: Dr. Beatrix Vierkorn-Rudolph
Geschäftsführer: Prof. Dr. Anke Rita Kaysser-Pyzalla, Prof. Dr. Dr. h.c. 
Wolfgang Eberhardt, Dr. Ulrich Breuer
Sitz der Gesellschaft: Berlin
Handelsregister: AG Charlottenburg, 89 HRB 5583




More information about the vtkusers mailing list