I&#39;ve added code to a project to allow a user to define the polyline to be used in the itkPolylineMask2DImageFilter.  <br><br>It works when I draw the polyline by clicking vertex points in the counter-clockwise direction only.  <br>
It does not work when the polyline is defined by points in the clockwise orientation (it sets the whole image to 0).<br><br>What is the deal with this?  Is there a reason for it or is it a bug?  It is certainly not convenient.<br>
<br>These results can be replicated by changing two lines in the test file: itkPolylineMask2DImageFilterTest<br>See commented lines below.<br><br>    VertexType v;<br>    v[0] = 12.8;<br>    v[1] = 25.6;<br>    inputPolyline-&gt;AddVertex(v);<br>
  <br>    v[0] = 25.6;<br>    v[1] = 12.8;//39.4;                //Swapped to break filter;<br>    inputPolyline-&gt;AddVertex(v);<br>  <br>    v[0] = 39.4;<br>    v[1] = 25.6;<br>    inputPolyline-&gt;AddVertex(v);<br><br>
    v[0] = 25.6;<br>    v[1] = 39.4;//12.8;                //Swapped to break filter;<br>    inputPolyline-&gt;AddVertex(v);<br>