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-18 06:22:05 +0400
committerCampbell Barton <ideasman42@gmail.com>2006-05-18 06:22:05 +0400
commit8537a4d4717882fca4df9cc687a477c5b57edc87 (patch)
tree36b4530deb45a4dc8efac829eb28214cfc4f044b /release/scripts/bpymodules/BPyMesh.py
parenta0fdbf1c18366087e8611c050e4c57f04e8afd21 (diff)
Fixed some evil bugs in the poly reducer messing up UV's every now and then.
Added support for "Weighted Collapse" Before an edge could only collapse into its middle, Now the edge collapses into a point bias'd by the 2 verts Concave/Convec "Pointyness" value as well as boundry weighting. This works much better for boundry verts. - UV's Vcols and Weights are correctly interpolated into the new location. Added a tool in the mesh menu for accessing the poly reduction tool.
Diffstat (limited to 'release/scripts/bpymodules/BPyMesh.py')
-rw-r--r--release/scripts/bpymodules/BPyMesh.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/bpymodules/BPyMesh.py b/release/scripts/bpymodules/BPyMesh.py
index b53a9ad9176..6dbe7ba46fd 100644
--- a/release/scripts/bpymodules/BPyMesh.py
+++ b/release/scripts/bpymodules/BPyMesh.py
@@ -2,10 +2,10 @@ import Blender
import BPyMesh_redux
reload(BPyMesh_redux)
-def redux(ob, REDUX=0.5, BOUNDRY_WEIGHT=2.0, FACE_AREA_WEIGHT=1.0, FACE_TRIANGULATE=True):
+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)
+ 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.