def snapToOrtho(self,shape,last,constrain): "returns a list of ortho snap locations" snaps = [] if self.isEnabled("ortho"): if constrain: if isinstance(shape,Part.Edge): if last: if DraftGeomUtils(shape) == "Line": if self.constraintAxis: tmpEdge = Part.Line(last,last.add(self.constraintAxis)).toShape() # get the intersection points pt = DraftGeomUtils.findIntersection(tmpEdge,shape,True,True) if pt: for p in pt: snaps.append([p,'ortho',p]) return snaps