Skip to content

Commit 0b8d453

Browse files
committed
revert
1 parent 8dc6c6a commit 0b8d453

1 file changed

Lines changed: 5 additions & 13 deletions

File tree

Lib/booleanOperations/booleanGlyph.py

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ def _flushContour(self):
5151

5252
contour = self._glyph.contourClass()
5353
contour._points = points
54-
if contour.area != 0:
55-
# ignore paths with no area
56-
self._glyph.contours.append(contour)
5754

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

7774
def __init__(self):
7875
self._points = []
79-
self._area = None
76+
self._clockwise = None
8077
self._bounds = None
8178

8279
def __len__(self):
@@ -95,19 +92,14 @@ def drawPoints(self, pointPen):
9592
pointPen.endPath()
9693

9794
def _get_clockwise(self):
98-
return self.area < 0
99-
100-
clockwise = property(_get_clockwise)
101-
102-
def _get_area(self):
103-
if self._area is None:
95+
if self._clockwise is None:
10496
pen = AreaPen()
10597
pen.endPath = pen.closePath
10698
self.draw(pen)
107-
self._area = pen.value
108-
return self._area
99+
self._clockwise = pen.value < 0
100+
return self._clockwise
109101

110-
area = property(_get_area)
102+
clockwise = property(_get_clockwise)
111103

112104
def _get_bounds(self):
113105
if self._bounds is None:

0 commit comments

Comments
 (0)