コード例 #1
0
ファイル: objectsRF.py プロジェクト: charlesmchen/typefacet
	def __init__(self, segmentType=None, points=[], smooth=False):
		BaseSegment.__init__(self)
		self.selected = False
		self.points = []
		self.smooth = smooth
		if points:
			#the points in the segment should be RPoints, so create those objects
			for point in points[:-1]:
				x, y = point
				p = RPoint(x, y, pointType=OFFCURVE)
				p.setParent(self)
				self.points.append(p)
			aX, aY = points[-1]
			p = RPoint(aX, aY, segmentType)
			p.setParent(self)
			self.points.append(p)
コード例 #2
0
 def __init__(self, segmentType=None, points=[], smooth=False):
     BaseSegment.__init__(self)
     self.selected = False
     self.points = []
     self.smooth = smooth
     if points:
         #the points in the segment should be RPoints, so create those objects
         for point in points[:-1]:
             x, y = point
             p = RPoint(x, y, pointType=OFFCURVE)
             p.setParent(self)
             self.points.append(p)
         aX, aY = points[-1]
         p = RPoint(aX, aY, segmentType)
         p.setParent(self)
         self.points.append(p)
コード例 #3
0
	def __init__(self, index, contoure, node):
		BaseSegment.__init__(self)
		self._object = node
		self.parent = contoure
		self.index = index
		self.isMove = False # to store if the segment is a move segment
コード例 #4
0
ファイル: objectsGS.py プロジェクト: RT4A/Glyphs-Scripts
	def __init__(self, index, contoure, node):
		BaseSegment.__init__(self)
		self._object = node
		self.parent = contoure
		self.index = index
		self.isMove = False # to store if the segment is a move segment