[vtkusers] displaying simple polygons

Xavi Almolda xavi.almolda at gmail.com
Mon Nov 2 09:10:28 EST 2009


Thanks for your answer,

Yes, I have already read the information on this page.
The problem I have is that I need to tesselate the non-convex polygons. I am
using a vtkTriangleFilter and it works fine, but I need to display the edge
of the original polygon, and after the tesselation I have a lot of triangles
each with its edges. Do I need to create another vtkCellArray with a
vtkPolyline cell? Is there another way to get and display the edge of the
resulting set of triangles?

Thank you,

Xavi

On Wed, Oct 28, 2009 at 7:35 PM, David Doria
<daviddoria+vtk at gmail.com<daviddoria%2Bvtk at gmail.com>
> wrote:

> On Wed, Oct 28, 2009 at 9:02 AM, Xavi Almolda <xavi.almolda at gmail.com>
> wrote:
> > Hello,
> > I am developing an application with vtk that shows different results in
> the
> > form of a mesh with values at the nodes or elements. The problem is that
> I
> > need to draw some simple polygons on top of the results.
> > I need to draw some simple polygons that represent spatial features, like
> > the fetaures from a GIS layer. Each polygon is defined as a set of
> > coordinates ( only x and y coordinates ).
> > What is the best solution for doing this with vtk?
> > Thank you,
> > Xavi
>
> Is this what you're looking for?
>
> http://www.itk.org/Wiki/Polygon
>
> Thanks,
>
> David
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091102/ef76e4f3/attachment.htm>


More information about the vtkusers mailing list