Lines Matching refs:points

58 	def curveTo(self, *points):
59 """Draw a cubic bezier with an arbitrary number of control points.
62 (control) points. If the number of control points is > 2, the
66 Let n be the number of control points (which is the number of
75 points" principle. See also decomposeQuadraticSegment().
79 def qCurveTo(self, *points):
83 points.
86 using 'implied points': between each two consequtive off-curve points,
91 This is to support contours that have NO on-curve points (a rarely
128 def curveTo(self, *points):
131 def qCurveTo(self, *points):
190 """This default implementation simply transforms the points
226 def curveTo(self, *points):
227 n = len(points) - 1 # 'n' is the number of control points
234 self._curveToOne(*points)
235 self.__currentPoint = points[-1]
237 # n is the number of control points; split curve into n-1 cubic
243 # smaller amount of points.
245 for pt1, pt2, pt3 in decomposeSuperBezierSegment(points):
249 self.qCurveTo(*points)
251 self.lineTo(points[0])
255 def qCurveTo(self, *points):
256 n = len(points) - 1 # 'n' is the number of control points
258 if points[-1] is None:
260 # define a contour with NO on-curve points. BasePen supports
263 # on-curve point between the last and the first off-curve points
265 x, y = points[-2] # last off-curve point
266 nx, ny = points[0] # first off-curve point
270 points = points[:-1] + (impliedStartPoint,)
272 # Split the string of points into discrete quadratic curve
273 # segments. Between any two consecutive off-curve points
277 for pt1, pt2 in decomposeQuadraticSegment(points):
281 self.lineTo(points[0])
284 def decomposeSuperBezierSegment(points):
285 """Split the SuperBezier described by 'points' into a list of regular
286 bezier segments. The 'points' argument must be a sequence with length
288 destination on-curve point, the rest of the points are off-curve points.
294 n = len(points) - 1
297 pt1, pt2, pt3 = points[0], None, None
299 # calculate points in between control points.
303 temp1 = points[i-1]
304 temp2 = points[i-2]
314 bezierSegments.append((pt1, points[-2], points[-1]))
318 def decomposeQuadraticSegment(points):
319 """Split the quadratic curve segment described by 'points' into a list
320 of "atomic" quadratic segments. The 'points' argument must be a sequence
322 is the destination on-curve point, the rest of the points are off-curve
323 points. The start point should not be supplied.
328 n = len(points) - 1
332 x, y = points[i]
333 nx, ny = points[i+1]
335 quadSegments.append((points[i], impliedPt))
336 quadSegments.append((points[-2], points[-1]))