Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-34487

Wrong result using "QPolygonF united ( const QPolygonF & r ) const"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4: Low P4: Low
    • None
    • 4.8.4
    • None

      Hello

      I wanted to use your QPolygonF::united and QPolygonF:::subtracted to perform erosion and dilatation operations in mathematical morphology.
      In the attached picture you can see a blue polygon (counter clock wise) and little cross "+".
      In the attached picture you can see, bottom-left a square polygon used to dilate blue one (and obtain red one).
      I move square polygon on each cross position "+" and perform a "united" operation.
      It works pretty well from step 1 to 32 (left side of the attached screenshot). But step 33, it perfom an erosion ?! (right side of the attached screenshot)

      Wich algorithm did you implement for ::united ? ( Weiler - Atherton ?)

      Thank's

      V.

        1. Error_QPolygonF-united.png
          Error_QPolygonF-united.png
          17 kB
        2. Parcours.txt
          1 kB
        3. Poly_chapeau.txt
          0.1 kB
        4. Poly_element_carre_d2_2.txt
          0.0 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            sletta Gunnar Sletta
            devlight devlight
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes