+ started implementing the new Draft snap

git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5309 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
This commit is contained in:
yorikvanhavre
2011-12-15 17:20:23 +00:00
parent 133c519ea3
commit 4748657016
8 changed files with 1119 additions and 278 deletions

View File

@@ -174,6 +174,7 @@ def rounded(v):
def getPlaneRotation(u,v,w=None):
"returns a rotation matrix defining the (u,v,w) coordinates system"
if (not u) or (not v): return None
if not w: w = u.cross(v)
typecheck([(u,Vector), (v,Vector), (w,Vector)], "getPlaneRotation")
m = FreeCAD.Matrix(