Lines Matching refs:segments
68 def _flushContour(self, segments): argument
105 segments = [("move", [(pt, smooth, name, kwargs)])]
106 self._flushContour(segments)
108 segments = []
113 segments.append(("move", [(pt, smooth, name, kwargs)]))
138 segments.append((segmentType, currentSegment))
141 self._flushContour(segments)
159 def _flushContour(self, segments): argument
160 assert len(segments) >= 1
162 if segments[0][0] == "move":
165 points = segments[0][1]
168 del segments[0]
173 segmentType, points = segments[-1]
183 nSegments = len(segments)
185 segmentType, points = segments[i]