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

Karl Wright commented on LUCENE-7316:
-------------------------------------

What happens is that the logic decides it cannot use only one polygon to 
represent the shape, so it breaks it into two polygons.  Unfortunately, the 
dividing plane it uses happens to be coplanar with one of the already existing 
planes for part of the shape.

Detecting this condition is straightforward, but deciding what to do once it is 
encountered is a challenge.  The shape that has two identical planes is, in 
fact, only a triangle, so getting rid of one of the planes would yield a 
degenerate condition.  If, instead, we simply throw IllegalArgumentException 
when this situation arises, then many perfectly legitimate shapes will be 
disallowed.

> Geo3d test failure
> ------------------
>
>                 Key: LUCENE-7316
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7316
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/spatial3d
>    Affects Versions: master (7.0)
>            Reporter: Karl Wright
>            Assignee: Karl Wright
>         Attachments: LUCENE-7316.patch
>
>
> Reproducible on master with:
> {code}
> ant test  -Dtestcase=TestGeo3DPoint -Dtests.method=testGeo3DRelations 
> -Dtests.seed=EEA08DD7FAE3C688 -Dtests.multiplier=2 -Dtests.slow=true 
> -Dtests.directory=MMapDirectory -Dtests.locale=es 
> -Dtests.timezone=America/Manaus -Dtests.asserts=true 
> -Dtests.file.encoding=UTF-8
> {code}
> Note: I was initially unable to reproduce this, until I pulled up code that 
> [~mikemccand] recently committed.  It seems possible that encoding/decoding 
> changes are triggering it.  Of specific concern is the new way 
> maximum/minimum decoded values are computed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to