[vtkusers] creating polygons from polylines and making holes in polygons (isolines related)

Malcolm Drummond malcolm at geovision.co.za
Tue Dec 17 12:13:08 EST 2002


Hi Sebastien

One way is to use vtkGLUTesselatorTriangleFilter (by Tom Cintriniti - it's
in the contrib directory). Here's a tcl script and data file that shows
simple use (works under 3.2, should be OK under 4.x). You'll have to link
with the GLU library.

Hope this helps
Malcolm

----- Original Message -----
From: "sebastien MARAUX" <maraux at ondim.fr>
To: "vtkusers" <vtkusers at public.kitware.com>
Sent: Tuesday, December 17, 2002 11:49 AM
Subject: [vtkusers] creating polygons from polylines and making holes in
polygons (isolines related)


> Hello,
>
> I have a few questions :
>
> 0. I load some polylines from a file, describing isolines and
>  "negative islands" isolines, I assume I can identify negative
>  islands by putting a scalar for it ?
>
> 1. How to create solid polygons from polylines (ie isolines) ?
>
> 2. How to make holes in this polygons with other polygons
> (negative island isolines)
>
> Thank you in advance for your tips, tricks and advices.
>
> Seb
>
> _______________________________________________
> 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
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: poly_tess.vtk
Type: application/octet-stream
Size: 300 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20021217/9b82e074/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: poly_tess.tcl
Type: application/octet-stream
Size: 634 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20021217/9b82e074/attachment-0001.obj>


More information about the vtkusers mailing list