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-27 18:27:52 +0400
committerCampbell Barton <ideasman42@gmail.com>2006-05-27 18:27:52 +0400
commit8baa88da9b4ad41d4f26ed6c554ab25ee77a301d (patch)
tree8b4e0edb1d558471c30f9dfe802ac0df060e45c4 /release/scripts/bpymodules/BPyMesh.py
parente5b39b69d186882cce12d0a9baba0bf32c755780 (diff)
Poly reduction fixes
Added remove doubles as a keyword option, Fixed Triangulate (need to select the faces first) Fixed boundry weighting (defaults reduced boundries first more then non boundry verts!) Made face area weighting give better results.
Diffstat (limited to 'release/scripts/bpymodules/BPyMesh.py')
-rw-r--r--release/scripts/bpymodules/BPyMesh.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/release/scripts/bpymodules/BPyMesh.py b/release/scripts/bpymodules/BPyMesh.py
index c955f2165d2..b0351e16a76 100644
--- a/release/scripts/bpymodules/BPyMesh.py
+++ b/release/scripts/bpymodules/BPyMesh.py
@@ -1,11 +1,6 @@
import Blender
-import BPyMesh_redux
-reload(BPyMesh_redux)
+from BPyMesh_redux import redux # seperated because of its size.
-def redux(ob, REDUX=0.5, BOUNDRY_WEIGHT=5.0, FACE_AREA_WEIGHT=1.0, FACE_TRIANGULATE=True, DO_UV=True, DO_VCOL=True, DO_WEIGHTS=True):
- if REDUX<0 or REDUX>1.0:
- raise 'Error, factor must be between 0 and 1.0'
- BPyMesh_redux.redux(ob, REDUX, BOUNDRY_WEIGHT, FACE_AREA_WEIGHT, FACE_TRIANGULATE, DO_UV, DO_VCOL, DO_WEIGHTS)
def meshWeight2Dict(me):
''' Takes a mesh and return its group names and a list of dicts, one dict per vertex.