[vtkusers] Re: how to determine Holes in Polydata ?
Goodwin Lawlor
goodwin.lawlor at ucd.ie
Tue Apr 11 07:09:52 EDT 2006
I've a helper vtk class that contains a pipeline that fills holes in
vtkPolyData surfaces:
http://www.bioengineering-research.com/vtk/vtkTesselateBoundaryLoops.htm
hth
Goodwin
bailleul jonathan wrote:
> That's it!
>
> If you just want to check if there are holes, then you're done.
>
>
> If you want to repair the polydata after the process, the idea is to
> locate the edges delimitating the 'hole' on the closed polydata
> surface - since i'm always in trouble for locating whch class can
> perform a given task, I did it in retrieving the number of neighbors
> of each edge with polydata (?) class.
>
> Then, if the hole is limited to a single triangle, that's easy: just
> check if, given the AB border edge, you can find both BC and AC as
> border edges, then add ABC triangle to the polydata.
>
> For bigger holes, I started to build a path of border edges, then
> finding a way to patch the hole using a foreign class from Verant I
> hand under my hand, but many bugs are still present...
>
>
> my 2 cents again,
>
>
>
> Goodwin Lawlor wrote:
>> vikrant aglawe wrote:
>>
>>> Hi,
>>>
>>> I am currently trying to decimate a given topology using vtkDcimate
>>> pro filter.
>>>
>>> In order to achieve required reduction I had to turn the topology
>>> preservation flag OFF and boundary vertex deletion flag ON, which,
>>>
>>> according to vtk documentation, can generate holes and
>>> nonrectangular surfaces. Is their a way to determine
>>>
>>> if holes occur in the process of decimation or when the boundary
>>> becomes non rectangular?
>>>
>>> vikrant
>>
>>
>> Hi Vikrant,
>>
>>
>> Have a look at vtkFeatureEdges
>>
>> hth
>>
>>
>> Goodwin
>>
>> _______________________________________________
>> This is the private VTK discussion list. Please keep messages
>> on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>
>
>
>
More information about the vtkusers
mailing list