Fixed bug in Draft working plane (Jose)

This commit is contained in:
Yorik van Havre 2012-03-07 10:34:32 -03:00
parent 316ce23508
commit 5496acdcf1

View File

@ -83,7 +83,7 @@ class plane:
= (cp . axis) / (direction . axis)
'''
if direction == None: direction = self.axis
return self.axis.dot(self.position.sub(p))/self.axis.dot(direction)
return direction.dot(self.position.sub(p))
def projectPoint(self, p, direction=None):
'''project point onto plane, default direction is orthogonal'''