Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2006-05-11 14:06:15 +0400
committerCampbell Barton <ideasman42@gmail.com>2006-05-11 14:06:15 +0400
commita3783d32e08be1c750d9fed07bd72404fe13dfeb (patch)
tree8b070f9425d13a8794c7a2c4ffa7919bed7e174e /release/scripts/vertexpaint_selfshadow_ao.py
parent7bb1c768d1c7d546f1812a33ffaf0f40620046c7 (diff)
Added some shortcuts to Mesh
MFace.area MFace.cent MEdge.length Updated some scripts that used these.
Diffstat (limited to 'release/scripts/vertexpaint_selfshadow_ao.py')
-rw-r--r--release/scripts/vertexpaint_selfshadow_ao.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/release/scripts/vertexpaint_selfshadow_ao.py b/release/scripts/vertexpaint_selfshadow_ao.py
index 7f1dea1c761..557e7cd3f29 100644
--- a/release/scripts/vertexpaint_selfshadow_ao.py
+++ b/release/scripts/vertexpaint_selfshadow_ao.py
@@ -57,22 +57,20 @@ def vertexFakeAO(me, PREF_BLUR_ITERATIONS, PREF_BLUR_SCALE, PREF_CLAMP_CONCAVE,
ed_face_users = [ [] for i in xrange(len(me.edges)) ]
- fcent= [BPyMesh.faceCent(f) for f in me.faces]
+ fcent= [f.cent for f in me.faces]
min_tone=0
max_tone=0
for i, f in enumerate(me.faces):
c= fcent[i]
- fno = f.no*0.0001
+ fno = f.no
for v in f.v:
- #vno=v.no*0.001 # get a scaled down normal.
vno=v.no # get a scaled down normal.
l1= (c-(v.co-vno)).length
l2= (c-(v.co+vno)).length
- #l2= ((c+fno) - (v.co+vno)).length
vert_tone_count[v.index]+=1
if abs(l1-l2) < 0.0000001:
pass