Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-10470

Unable to Tessellate polygon

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Fixed
    • 9.0
    • 9.2
    • core/index
    • None
    • New

    Description

      I have a polygon that causes Tessellator.tessellate to throw an "Unable to Tessellate shape" error. I tried several versions of Lucene, and the issue does not happen with Lucene 8.2.0, but seems to happen with all Lucene versions >=8.3.0, including the latest main branch.

      I created a branch that reproduces the issue: https://github.com/apache/lucene/compare/main...yixunx:yx/reproduce-tessellator-error?expand=1

      This is the polygon rendered on geojson.io:

      Is this a bug in the Tesselator logic, or is there anything wrong with this polygon that maybe wasn't caught by Lucene 8.2.0?

      Attachments

        1. image-2022-04-04-17-34-41-971.png
          38 kB
          Yixun Xu
        2. image-2022-04-04-17-33-52-454.png
          12 kB
          Yixun Xu
        3. polygon3.geojson
          216 kB
          Yixun Xu
        4. image-2022-03-31-16-06-33-051.png
          30 kB
          Yixun Xu
        5. polygon2.geojson
          84 kB
          Yixun Xu
        6. vertices-lucene-820.txt
          7 kB
          Yixun Xu
        7. vertices-latest-lucene.txt
          11 kB
          Yixun Xu
        8. image-2022-03-16-18-12-43-411.png
          14 kB
          Yixun Xu

        Activity

          People

            ivera Ignacio Vera
            yixunx Yixun Xu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2h 50m
                2h 50m