BPyRegistry was throwing errors with blank config files. made it check for this and be quiet.

fixed some bugs in BPyMesh_redux, tweaked to work well for test cases. much better use of error levels for edge weighting. better collapsing to the desired target. triangulates before reduction be default now.
This commit is contained in:
2006-05-15 07:29:28 +00:00
parent ab30cf7489
commit 90c10ab910
3 changed files with 159 additions and 117 deletions

View File

@@ -1,10 +1,11 @@
import Blender
import BPyMesh_redux
reload(BPyMesh_redux)
def redux(ob, factor=0.5):
if factor<0 or factor>1.0:
def redux(ob, REDUX=0.5, BOUNDRY_WEIGHT=2.0, FACE_AREA_WEIGHT=1.0, FACE_TRIANGULATE=True):
if REDUX<0 or REDUX>1.0:
raise 'Error, factor must be between 0 and 1.0'
BPyMesh_redux.redux(ob, factor)
BPyMesh_redux.redux(ob, REDUX, BOUNDRY_WEIGHT, FACE_AREA_WEIGHT)
def meshWeight2Dict(me):
''' Takes a mesh and return its group names and a list of dicts, one dict per vertex.