Hi guys,<br><br>I has completely missed this point. I thought the fact that the polygon being closed is the only requirement.<br><br>Is there a filter in VTK that will order a given set of points in the given direction?<br>
<br>Cheers and thanks,<br>Anja<br><br><div><span class="gmail_quote">On 31/10/06, <b class="gmail_sendername">David Gobbi</b> &lt;<a href="mailto:dgobbi@atamai.com">dgobbi@atamai.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Anja,<br><br>The vtkPolyDataToImageStencil calculates the normal of each polygon to<br>find out which face of the polygon is the front (the &quot;outside&quot;) and<br>which is the back (the &quot;inside&quot;).&nbsp;&nbsp;The calculation of the normal depends
<br>on the ordering of the points.<br><br>You are extruding a polyline to create the the polydata, right?<br>Unfortunately, I don't whether the the front/back orientation of the<br>polygons depends on the ordering of points in the original polyline...
<br>Dean might have more experience here.<br><br>When you apply the stencil, most classes that have a SetStencil() method<br>also have a ReverseStencilOn() method to set whether you want to use the<br>region inside the stencil or the region outside the stencil.
<br><br> - David<br><br><br>Anja Ende wrote:<br>&gt; Ok, I have clearly missed this part!!!<br>&gt;<br>&gt; So, the points have to be ordered in a counter clockwise fashion???<br>&gt; Why is that???<br>&gt;<br>&gt; Cheers,
<br>&gt; Anja<br>&gt;<br>&gt; On 30/10/06, * Dean Inglis* &lt;<a href="mailto:dean.inglis@sympatico.ca">dean.inglis@sympatico.ca</a><br>&gt; &lt;mailto:<a href="mailto:dean.inglis@sympatico.ca">dean.inglis@sympatico.ca</a>
&gt;&gt; wrote:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Hi Anja,<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; is your polydata always defined such<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; that the points forming a closed loop are<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; ordered counter-clockwise or equivalently,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; always clockwise and the vtkImageStencil set
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; accordingly?<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Dean<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; --<br>&gt; Cheers,<br>&gt;<br>&gt; Anja<br>&gt; ------------------------------------------------------------------------<br>
&gt;<br>&gt; _______________________________________________<br>&gt; This is the private VTK discussion list.<br>&gt; Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ
</a><br>&gt; Follow this link to subscribe/unsubscribe:<br>&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>&gt;<br><br></blockquote></div><br><br clear="all">
<br>-- <br>Cheers,<br><br>Anja