[vtkusers] creating polygons ... errata

Malcolm Drummond malcolm at geovision.co.za
Thu Dec 19 02:43:34 EST 2002


My apologies

You won't have to iterate per polygon. I've just tried passing several holed
polygons (each defined as exterior followed by interior boundaries) in one
polydata dataset and it works fine. Here's an updated tcl script and data.

Malcolm

----- Original Message -----
From: "Malcolm Drummond" <malcolm at geovision.co.za>
To: "vtkusers" <vtkusers at public.kitware.com>
Sent: Wednesday, December 18, 2002 9:25 PM
Subject: Re: [vtkusers] creating polygons from polylines and making holes in
polygons (isolines related)


> Hi Sebastien
>
> Yes, it uses the OpenGL Utilities library (glu, under windows glu32.lib).
I
> think your error comes from not linking with the library. I haven't
upgraded
> to VTK 4.x yet, but there must be a way to add additional libraries with
> cmake - with pcmaker there were additional options under 'advanced',
perhaps
> someone with experience can chip in here.
>
> Tom Cintrinitis filter wraps the tesselator functionality of the library -
> in terms of your polydata, the first polygon is the external boundary,
> following polygons are internal boundaries. The best method is to iterate
> through your polygons, each time re-setting your input-polydata to the
> desired boundaries and accumulating the output of the tesselation filter
> (after updating) into another polydata.
>
> If you can get your hands on an OpenGL book it will make things much
> clearer.
>
> Malcolm
>
> ----- Original Message -----
> From: "sebastien MARAUX" <maraux at ondim.fr>
> To: "Malcolm Drummond" <malcolm at geovision.co.za>
> Sent: Wednesday, December 18, 2002 11:21 AM
> Subject: Re: [vtkusers] creating polygons from polylines and making holes
in
> polygons (isolines related)
>
>
> > Hello,
> >
> > Does it use openGL ?
> > I want to create those polygons in vtk, while data is in
> > vtkPolyData. and after I export the result in VRML.
> > Would it work ?
> >
> > Thank you again.
> >
> > Seb
> >
> > ----- Original Message -----
> > From: "Malcolm Drummond" <malcolm at geovision.co.za>
> > To: "vtkusers" <vtkusers at public.kitware.com>
> > Sent: Tuesday, December 17, 2002 6:13 PM
> > Subject: Re: [vtkusers] creating polygons from polylines and making
holes
> in
> > polygons (isolines related)
> >
> >
> > > 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
> > > >
> > >
> >
> >
>
> _______________________________________________
> 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_n.vtk
Type: application/octet-stream
Size: 764 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20021219/49170098/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: poly_tess_n.tcl
Type: application/octet-stream
Size: 636 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20021219/49170098/attachment-0001.obj>


More information about the vtkusers mailing list