Browse files

No longer checking aspect ratio of rotated point cloud in divide_poin…

…ts()
  • Loading branch information...
1 parent fa1d284 commit 80cf1865b49b6b1eba3c18e8225af72e47e5e237 @migurski committed Dec 2, 2012
Showing with 3 additions and 5 deletions.
  1. +3 −5 Skeletron/__init__.py
View
8 Skeletron/__init__.py
@@ -339,12 +339,10 @@ def divide_points(points):
xys = numpy.dot(rotate, xys - translate)
#
- # Now, xys is an array of points with the center at (0, 0)
- # and rotated so that the major axis is horizonal.
+ # Now, xys is an array of points with the center at (0, 0) and rotated
+ # so that the major axis is horizonal, so it's probably safe to cut it
+ # in half at x=0 and operate the two sides independently.
#
- width, height = xys.max(1) - xys.min(1)
- assert width > height
-
points1 = [(x, y) for (x, y) in xys.T if x < 0]
points2 = [(x, y) for (x, y) in xys.T if x >= 0]

0 comments on commit 80cf186

Please sign in to comment.