You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by kw...@apache.org on 2017/09/14 14:52:07 UTC

lucene-solr:branch_6x: LUCENE-7955: GeoDegeneratePath did not compute endpoint bounding planes properly.

Repository: lucene-solr
Updated Branches:
  refs/heads/branch_6x 1ed0d4e5f -> d475534ef


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/d475534e
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/d475534e
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/d475534e

Branch: refs/heads/branch_6x
Commit: d475534ef46bf9c298f5103df57851d1fc9ce530
Parents: 1ed0d4e
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:51:59 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/d475534e/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));
 
   }