You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sh...@apache.org on 2017/09/18 16:25:19 UTC
[45/50] lucene-solr:feature/autoscaling_72: LUCENE-7955:
GeoDegeneratePath did not compute endpoint bounding planes properly.
LUCENE-7955: GeoDegeneratePath did not compute endpoint bounding planes properly.
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/c317ad8c
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/c317ad8c
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/c317ad8c
Branch: refs/heads/feature/autoscaling_72
Commit: c317ad8c1fb4a2eb56fa22f8e9b9fad79ce661ba
Parents: 277bc3a
Author: Karl Wright <Da...@gmail.com>
Authored: Thu Sep 14 10:50:44 2017 -0400
Committer: Karl Wright <Da...@gmail.com>
Committed: Thu Sep 14 10:50:44 2017 -0400
----------------------------------------------------------------------
.../org/apache/lucene/spatial3d/geom/GeoDegeneratePath.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/c317ad8c/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoDegeneratePath.java
----------------------------------------------------------------------
diff --git a/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoDegeneratePath.java b/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoDegeneratePath.java
index eaceb26..861a2d4 100644
--- a/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoDegeneratePath.java
+++ b/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoDegeneratePath.java
@@ -119,20 +119,20 @@ class GeoDegeneratePath extends GeoBasePath {
if (i == 0) {
// Starting endpoint
final SegmentEndpoint startEndpoint = new SegmentEndpoint(currentSegment.start,
- new SidedPlane(currentSegment.startCutoffPlane));
+ currentSegment.startCutoffPlane);
endPoints.add(startEndpoint);
this.edgePoints = new GeoPoint[]{currentSegment.start};
continue;
}
endPoints.add(new SegmentEndpoint(currentSegment.start,
- new SidedPlane(segments.get(i-1).endCutoffPlane),
- new SidedPlane(currentSegment.startCutoffPlane)));
+ segments.get(i-1).endCutoffPlane,
+ currentSegment.startCutoffPlane));
}
// Do final endpoint
final PathSegment lastSegment = segments.get(segments.size()-1);
endPoints.add(new SegmentEndpoint(lastSegment.end,
- new SidedPlane(lastSegment.endCutoffPlane)));
+ lastSegment.endCutoffPlane));
}