[
https://issues.apache.org/jira/browse/LUCENE-8136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16339125#comment-16339125
]
Ignacio Vera commented on LUCENE-8136:
--------------------------------------
I attached a new patch. It seems we always need to calculate the dot product
between the created vector and the provided ones. Thererfore for already
working planes that is the price they will pay, they need to perform two extra
dot product operations.
Note that I have changed one of the constructors and it is now creating a
Vector. I think it needs to do that now.
Finally, the test method that creates small polygons can fail with the
following exception:
"java.lang.IllegalArgumentException: cannot find a point that is inside the
polygon"
Not sure if that is expected for tiny polygons but I do not think it s related
with this issue.
> Planes constructed with two points are wrong when points are close
> ------------------------------------------------------------------
>
> Key: LUCENE-8136
> URL: https://issues.apache.org/jira/browse/LUCENE-8136
> Project: Lucene - Core
> Issue Type: Bug
> Components: modules/spatial3d
> Reporter: Ignacio Vera
> Assignee: Karl Wright
> Priority: Major
> Attachments: LUCENE-8136-RandomTest.patch,
> LUCENE-8136-RandomTest.patch, LUCENE-8136.patch, LUCENE-8136.patch
>
>
> Whenever a plane is constructed with two points (and the center of the
> planet), and those points are close to each other,it might happen that the
> final plane does not contain all points used for the construction. The issue
> seems to happen when the resulting magnitude of the normal vector of the new
> plane (calculated using cross product) is lower that 1e-5.
> This is a follow up of issue LUCENE-8133.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]