Lines Matching full:segments
56 so when you need an outline presented as segments but you have
68 def _flushContour(self, segments): argument
72 of segments: the 'segments' argument.
74 The segments list contains tuples of length 2:
91 The 'points' list of "move" and "line" segments always contains
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]