Removed use of CrossVecs, DotVecs, CrossQuats and DotQuats

for all scripts except import_dxf and colladaImEx/translator.py
This commit is contained in:
2009-05-22 03:45:46 +00:00
parent e191618cb5
commit 612f3b3266
11 changed files with 45 additions and 50 deletions

View File

@@ -132,7 +132,6 @@ modified for Blender/Mathutils by Campell Barton
######################################################################
# Public interface
######################################################################
from Blender.Mathutils import DotVecs
def convexHull(point_list_2d):
"""Calculate the convex hull of a set of vectors
The vectors can be 3 or 4d but only the Xand Y are used.
@@ -197,7 +196,7 @@ def plane2mat(plane, normalize= False):
up= cent - ((plane[0]+plane[1])/2.0)
right= cent - ((plane[1]+plane[2])/2.0)
z= CrossVecs(up, right)
z= up.cross(right)
if normalize:
up.normalize()