[vtkusers] clip surface, fill hole

Bryn Lloyd blloyd at vision.ee.ethz.ch
Wed Jun 4 12:20:23 EDT 2008


Bryn Lloyd wrote:
> Dear users,
> 
> 
> I would like to clip a triangle surface, e.g. using a plane. Is there a 
> filter that will fill the resulting hole with triangles? I.e. the 
> resulting surface mesh should remain closed.
> 
> I could not find one. Does anybody have any hints/suggestions?
> 
> What about using the vtkCutter, doing Delaunay2D on the output (if there 
> is only one connected curve/line) and merging the patch with the clipped 
>  surface?


Well, that obviously only works if the curve around the hole is convex . 
In my example it is not, so I need a better solution.
Another assumption behind the proposed algorithm is that vtkCutter and 
vtkClipPolyData deliver the same cut interface (edges and points). Not 
sure if that is true.



--Bryn



More information about the vtkusers mailing list