2.5: Top Menu
[blender.git] / release / scripts / mesh_unfolder.py
index 906e0f0a3006828daac9ae3d2d022335c3bb226f..f5c19a92bd027af76c3acacf9cae28a324c01c61 100644 (file)
@@ -164,8 +164,8 @@ class Fold:
                sangle = Mathutils.AngleBetweenVecs(self.refPolyNormal, self.polyNormal)
                if(sangle!=sangle):
                        sangle=0.0
-               ncp = Mathutils.CrossVecs(self.refPolyNormal, self.polyNormal)
-               dp = Mathutils.DotVecs(ncp, self.edge.vector)
+               ncp = self.refPolyNormal.cross(self.polyNormal)
+               dp = ncp.dot(self.edge.vector)
                if(dp>0.0):
                        return +sangle
                else:
@@ -855,7 +855,7 @@ class Poly:
                p.resize3D()
                q = a-c
                q.resize3D()
-               return CrossVecs(p,q)
+               return p.cross(q)
        def makeEdges(self):
                self.edges = []
                for i in xrange(self.nPoints()):