#68 plfill fails to fill if the polygon is outside the window

closed-accepted
Arjen Markus
None
5
2011-09-15
2009-11-28
Alan W. Irwin
No

The 7th subpage of the first two pages of example 25 are empty when they should be filled (with red). examples/python/test_fill.py demonstrates the issue in a much simpler way. For the committed version of that simple test, the plfill polygon boundary is just outside the window and for this case plfill fails to fill. However, if you move the boundary just inside the window (by reversing sign on eps) or if you put the xmin boundary just inside the window with the rest of the polygon boundary outside the window, then plfill, fills properly. (Presumably, that is also the case for the xmax, ymin, and ymax boundaries as well.)

Discussion

  • Alan W. Irwin
    Alan W. Irwin
    2009-11-28

    • status: open --> open-accepted
     
  • Alan W. Irwin
    Alan W. Irwin
    2009-11-28

    I have now looked at the -dev svg results for examples/python/test_fill.py to help diagnose the issue (since SVG results are easy to interpret by humans). The result is the fill is set up properly, but all points in the associated polygon have been eliminated (which turns the fill into a no-op). I hope that clue will help you to find the source of this bug.

     
  • Alan W. Irwin
    Alan W. Irwin
    2009-11-30

    An additional fill issue is also shown by example 25 results so I will mention it here instead of in a separate bug report. Note that the eighth subpage of the third and fourth pages also show fill issues. The top and bottom triangles should be filled, but instead the middle triangle is filled. corresponding to the large indentation _into_ the polygon on the left.

     
  • Andrew Ross
    Andrew Ross
    2011-09-15

    I've checked and this bug is now fixed in svn so I am closing the bug.

     
  • Andrew Ross
    Andrew Ross
    2011-09-15

    • status: open-accepted --> closed-accepted