diff options
Diffstat (limited to 'lib/polygon.py')
-rw-r--r-- | lib/polygon.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/polygon.py b/lib/polygon.py index 0d8438c..fc4dad7 100644 --- a/lib/polygon.py +++ b/lib/polygon.py @@ -427,7 +427,7 @@ class SphericalPolygon(object): points = self._points.copy() # Rotate polygon so that center of polygon is at north pole - centroid = np.mean(points, axis=0) + centroid = np.mean(points[:-1], axis=0) centroid = vector.normalize_vector(*centroid) points = self._points - (centroid + np.array([0, 0, 1])) vector.normalize_vector( |