Loading ...
Sorry, an error occurred while loading the content.
 

Bug - help needed!

Expand Messages
  • Martin Weber
    I found a bug in pxl-outline.c/edge.c. testy.bmp gives two counterclockwise outlines. #0: (counterclockwise) (0,6) (0,5) (1,5) (2,5) (2,4) (1,4) (1,3) (1,2)
    Message 1 of 2 , Nov 1 8:17 AM
      I found a bug in pxl-outline.c/edge.c. testy.bmp gives two
      counterclockwise outlines.

      #0: (counterclockwise) (0,6) (0,5) (1,5) (2,5) (2,4) (1,4) (1,3) (1,2)
      (2,2) (3,2) (3,3) (4,3) (4,4) (3,4) (3,5) (3,6) (2,6) (1,6) [18].
      #1: (counterclockwise) (3,6) (3,5) (3,4) (2,4) (2,5) (1,5) (0,5) (0,4)
      (0,3) (0,2) (0,1) (1,1) (2,1) (3,1) (4,1) (5,1) (5,2) (5,3) (5,4) (5,5)
      (5,6) (4,6) [22].

      Outline #0 and #1 overlap. The correct result would be that never any
      counterclockwise outlines overlap with any other counterclockwise
      outlines. Could anyone help me to fix this bug.

      Thanks
      Martin
    • Martin Weber
      Sorry, one outline may lay over an other, but they may not intersect.
      Message 2 of 2 , Nov 1 10:17 AM
        Sorry, one outline may lay over an other, but they may not intersect.

        Martin Weber schrieb:

        > I found a bug in pxl-outline.c/edge.c. testy.bmp gives two
        > counterclockwise outlines.
        >
        > #0: (counterclockwise) (0,6) (0,5) (1,5) (2,5) (2,4) (1,4) (1,3) (1,2)
        > (2,2) (3,2) (3,3) (4,3) (4,4) (3,4) (3,5) (3,6) (2,6) (1,6) [18].
        > #1: (counterclockwise) (3,6) (3,5) (3,4) (2,4) (2,5) (1,5) (0,5) (0,4)
        > (0,3) (0,2) (0,1) (1,1) (2,1) (3,1) (4,1) (5,1) (5,2) (5,3) (5,4) (5,5)
        > (5,6) (4,6) [22].
        >
        > Outline #0 and #1 overlap. The correct result would be that never any
        > counterclockwise outlines overlap with any other counterclockwise
        > outlines. Could anyone help me to fix this bug.
        >
        > Thanks
        > Martin
        >
        >
        > ------------------------------------------------------------------------
        > Name: testy.bmp
        > testy.bmp Type: Bitmap (image/bmp)
        > Encoding: base64
      Your message has been successfully submitted and would be delivered to recipients shortly.