[vtkusers] Closing holes in PolyData

Goodwin Lawlor goodwin.lawlor at ucd.ie
Wed Mar 5 13:22:32 EST 2003


Here's the outline of how to do it:
1. Use vtkFeatureEdges to get the boundary edges
2. Use vtkStripper to to convert lines to polylines
3. Use this trick to convert polylines to polygons:
    vtkPolyData pd
    pd SetPoints [stripper GetPoints]
    pd SetPolys [stripper GetLines]
4. Use vtkTriangleFilter or the GLU version to triangulate
5. Use vtkAppendFilter to add the the pieces back to the original
6. Use vtkCleanPolyData to delete coincident points

I have a filter (somewhere...) that does this- I'll have a look for it.

Goodwin
----- Original Message -----
From: "Theodore Papatheodorou" <tp500 at doc.ic.ac.uk>
To: <vtkusers at public.kitware.com>; <vtk-developers at public.kitware.com>
Sent: Thursday, March 06, 2003 5:06 PM
Subject: [vtkusers] Closing holes in PolyData


> Hi all,
> does anyone know of a way to close holes in PolyData structures by
> generating more points to fill the gaps? There should be a straight
> forward way but I can not find it!
> Thanks for all your help.
>
> theodoros papatheodorou
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers




More information about the vtkusers mailing list