[ 
https://issues.apache.org/jira/browse/LUCENE-8133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16335416#comment-16335416
 ] 

Ignacio Vera commented on LUCENE-8133:
--------------------------------------

I disagree with the assessment. I think the factory is doing the right job and 
it is trying to create a convex polygon with the provided points as expected. 
The issue is that when creating one of the edges, the final plane suffers from 
numerical imprecision resulting of some of the points being out of the plane.

I attached the test with extra code that creates the bogus plane.

 

> Small polygon fails with misleading error:  Convex polygon has a side that is 
> more than 180 degrees
> ---------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-8133
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8133
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/spatial3d
>            Reporter: Ignacio Vera
>            Assignee: Karl Wright
>            Priority: Major
>         Attachments: LUCENE-8133.patch, LUCENE-8133.patch, 
> image-2018-01-22-12-52-21-656.png, image-2018-01-22-12-55-17-096.png
>
>
> Hi [~karl wright],
> I am trying to create a polygon that is valid but I am getting an error which 
> is probably incorrect. I think it is a problem with precision.
> I will attach a test.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to