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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        1. Poly_element_carre_d2_2.txt
          0.0 kB
        2. Poly_chapeau.txt
          0.1 kB
        3. Parcours.txt
          1 kB
        4. Error_QPolygonF-united.png
          Error_QPolygonF-united.png
          17 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes