示例#1
0
    def closest(self, position):
        """
		Obtain a Cursor at the point closest to 'position'
		
		Finds the point on this PLine that's closest to the point 'position' and returns a Cursor at that point
		"""
        return PCursor(Cursor.cursorFromClosestPoint(self.line, position))
示例#2
0
文件: TweakTools.py 项目: EQ4/Field
	def closest(self, position):
		"""
		Obtain a Cursor at the point closest to 'position'
		
		Finds the point on this PLine that's closest to the point 'position' and returns a Cursor at that point
		"""
		return PCursor(Cursor.cursorFromClosestPoint(self.line, position))
示例#3
0
def cursorAtPosition(self, position):
	"""Returns a 'cursor' object for this line thats closest to this position
        """

	return PCursor(Cursor.cursorFromClosestPoint(self, position))