[ https://issues.apache.org/jira/browse/LUCENE-10470?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17509783#comment-17509783 ]
Ignacio Vera commented on LUCENE-10470: --------------------------------------- Thanks [~yixunx] fro reporting. Indeed this is a bug and your analysis sounds correct. This reminded me to another issue (LUCENE-9580) where collinearity was happening when splitting polygons. I think the fix is similar, we need to prevent creating collinear lines when isNextEdgeFromPolygon flag is different between edges. I open a PR (attached in the ticket) with the fix. > Unable to Tessellate polygon > ---------------------------- > > Key: LUCENE-10470 > URL: https://issues.apache.org/jira/browse/LUCENE-10470 > Project: Lucene - Core > Issue Type: Bug > Components: core/index > Affects Versions: 9.0 > Reporter: Yixun Xu > Priority: Major > Attachments: image-2022-03-16-18-12-43-411.png, > vertices-latest-lucene.txt, vertices-lucene-820.txt > > Time Spent: 10m > Remaining Estimate: 0h > > 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: > !image-2022-03-16-18-12-43-411.png|width=379,height=234! > 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? -- This message was sent by Atlassian Jira (v8.20.1#820001) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org