<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>
<div>
<div>I'd like to expand on Burlen's answer, which is correct. VTK sort of handles concave polygons and sort of doesn't. In particular, it does not render them correctly because the polygons are send directly to the OpenGL rendering system, which in turn does
not handle them. It would be possible for VTK to handle this correctly, but it would be inefficient in the common case where polygons are convex.</div>
<div><br>
</div>
<div>In general, filters should handle concave polygons correctly. For example, run your polygon through the Triangulate filter. It will be properly triangulated and will then render correctly.</div>
<div><br>
</div>
<div>This issue has shown up on the ParaView and VTK mailing lists before. For a lengthy discussion, see this email thread:</div>
<div><br>
</div>
<blockquote style="margin:0 0 0 40px; border:none; padding:0px;">
<div>http://markmail.org/message/e3fal43v6wzwkgm4</div>
</blockquote>
<div><br>
</div>
<div>-Ken</div>
<div><font size="2"><font face="Consolas,Courier New,Courier"><span style="font-size:10pt"><br>
**** Kenneth Moreland<br>
*** Sandia National Laboratories<br>
*********** <br>
*** *** *** email: <font color="#0000FF"><u><a href="kmorel@sandia.gov">kmorel@sandia.gov</a><br>
</u></font>** *** ** phone: (505) 844-8919<br>
*** web: <font color="#0000FF"><u><a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a></u></font><br>
</span></font></font></div>
</div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Burlen Loring <<a href="mailto:bloring@lbl.gov">bloring@lbl.gov</a>><br>
<span style="font-weight:bold">Date: </span>Wed, 13 Jul 2011 14:01:55 -0700<br>
<span style="font-weight:bold">To: </span>David Doria <<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>><br>
<span style="font-weight:bold">Cc: </span>ParaView <<a href="mailto:paraview@paraview.org">paraview@paraview.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [Paraview] Displaying a flat polygon with multiple vertices<br>
</div>
<div><br>
</div>
<div>
<div bgcolor="#ffffff" text="#000000">Hi David,<br>
<br>
I think that the issue is that the polygon you constructed is not convex. Figure 19-20 in VTK users guide is misleading because the example of VTK_POLYGON shows a non-convex polygon which as you found out doesn't work.<br>
<br>
Burlen<br>
<br>
On 07/13/2011 01:40 PM, David Doria wrote:
<blockquote cite="mid:CABDpjTko3FMh5ayNC0kXPCQq7aj8ZoZYCkCydwVGCwMSKHgfUg@mail.gmail.com" type="cite">
I have created a polygon with many vertices using vtkPolygon, then put it in a vtkPolyData, and then saved it as a vtp file (attached). When I open it in Paraview, it looks very "broken" (seems like backfaces are showing, things are overlapping that shouldn't
be, etc). If I run the TriangleFilter on it, it looks fine. Is there something wrong with how I created the data? Or is Paraview just not able to handle displaying something like this?
<div><br clear="all">
Thanks,<br>
<br>
David<br>
</div>
<pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Please keep messages on-topic and check the ParaView Wiki at: <a class="moz-txt-link-freetext" href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a></pre>
</blockquote>
<br>
</div>
</div>
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at
<a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a> Please keep messages on-topic and check the ParaView Wiki at:
<a href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a> Follow this link to subscribe/unsubscribe:
<a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a>
</span>
</body>
</html>