Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
typemytype committed Dec 15, 2016
1 parent 8dc6c6a commit 0b8d453
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions Lib/booleanOperations/booleanGlyph.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ def _flushContour(self):

contour = self._glyph.contourClass()
contour._points = points
if contour.area != 0:
# ignore paths with no area
self._glyph.contours.append(contour)

def beginPath(self):
self._points = []
Expand All @@ -76,7 +73,7 @@ class BooleanContour(object):

def __init__(self):
self._points = []
self._area = None
self._clockwise = None
self._bounds = None

def __len__(self):
Expand All @@ -95,19 +92,14 @@ def drawPoints(self, pointPen):
pointPen.endPath()

def _get_clockwise(self):
return self.area < 0

clockwise = property(_get_clockwise)

def _get_area(self):
if self._area is None:
if self._clockwise is None:
pen = AreaPen()
pen.endPath = pen.closePath
self.draw(pen)
self._area = pen.value
return self._area
self._clockwise = pen.value < 0
return self._clockwise

area = property(_get_area)
clockwise = property(_get_clockwise)

def _get_bounds(self):
if self._bounds is None:
Expand Down

0 comments on commit 0b8d453

Please sign in to comment.