<div>Thanks for your answer,</div><div><br></div>Yes, I have already read the information on this page. <div>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?</div>
<div><br></div><div>Thank you,</div><div><br></div><div>Xavi<br><br><div class="gmail_quote">On Wed, Oct 28, 2009 at 7:35 PM, David Doria <span dir="ltr"><<a href="mailto:daviddoria%2Bvtk@gmail.com">daviddoria+vtk@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5">On Wed, Oct 28, 2009 at 9:02 AM, Xavi Almolda <<a href="mailto:xavi.almolda@gmail.com">xavi.almolda@gmail.com</a>> wrote:<br>
> Hello,<br>
> I am developing an application with vtk that shows different results in the<br>
> form of a mesh with values at the nodes or elements. The problem is that I<br>
> need to draw some simple polygons on top of the results.<br>
> I need to draw some simple polygons that represent spatial features, like<br>
> the fetaures from a GIS layer. Each polygon is defined as a set of<br>
> coordinates ( only x and y coordinates ).<br>
> What is the best solution for doing this with vtk?<br>
> Thank you,<br>
> Xavi<br>
<br>
</div></div>Is this what you're looking for?<br>
<br>
<a href="http://www.itk.org/Wiki/Polygon" target="_blank">http://www.itk.org/Wiki/Polygon</a><br>
<br>
Thanks,<br>
<br>
David<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div>