Added some shortcuts to Mesh

MFace.area
 MFace.cent
 MEdge.length

Updated some scripts that used these.
This commit is contained in:
2006-05-11 10:06:15 +00:00
parent 7bb1c768d1
commit a3783d32e0
5 changed files with 136 additions and 20 deletions

View File

@@ -413,15 +413,6 @@ def pointInsideMesh(ob, pt):
return len([None for f in me.faces if ptInFaceXYBounds(f, obSpacePt) if faceIntersect(f)]) % 2
# Get face center
def faceCent(f):
cent= Blender.Mathutils.Vector()
l= len(f.v)
for v in f.v:
cent+=v.co
return cent*(1.0/l)
# NMesh wrapper
Vector= Blender.Mathutils.Vector
class NMesh(object):