[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [741] trunk/py/scripts/addons/ curve_simplify.py: more updates to defaults
Florian Meyer
florianfelix at web.de
Sat Jun 19 05:50:36 CEST 2010
Revision: 741
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=741
Author: testscreenings
Date: 2010-06-19 05:50:19 +0200 (Sat, 19 Jun 2010)
Log Message:
-----------
more updates to defaults
Modified Paths:
--------------
trunk/py/scripts/addons/curve_simplify.py
Modified: trunk/py/scripts/addons/curve_simplify.py
===================================================================
--- trunk/py/scripts/addons/curve_simplify.py 2010-06-18 12:13:13 UTC (rev 740)
+++ trunk/py/scripts/addons/curve_simplify.py 2010-06-19 03:50:19 UTC (rev 741)
@@ -159,7 +159,7 @@
alti = altitude(points[newVerts[newIndex]], points[newVerts[newIndex+1]], point)
if alti > alti_store:
alti_store = alti
- if alti_store > error:
+ if alti_store >= error:
bigVert = i+1+newVerts[newIndex]
if bigVert:
new.append(bigVert)
@@ -378,9 +378,8 @@
description="degree of curve to get averaged curvatures")
error = FloatProperty(name="error",
description="maximum error to allow - distance",
- min=0.0,
- soft_min=0.0,
- default=0.00, precision=3)
+ min=0.0, soft_min=0.0,
+ default=0, precision=3)
degreeOut = IntProperty(name="degree",
min=3, soft_min=3,
max=7, soft_max=7,
@@ -483,9 +482,8 @@
description="degree of curve to get averaged curvatures")
error = FloatProperty(name="error in Bu",
description="maximum error in Blenderunits to allow - distance",
- min=0,
- soft_min=0,
- default=0.0)
+ min=0, soft_min=0,
+ default=0.0, precision=3)
degreeOut = IntProperty(name="degree",
min=3, soft_min=3,
max=7, soft_max=7,
@@ -493,8 +491,7 @@
description="degree of new curve")
dis_error = FloatProperty(name="distance error",
description="maximum error in Blenderunits to allow - distance",
- min=0,
- soft_min=0,
+ min=0, soft_min=0,
default=0.0)
keepShort = BoolProperty(name="keep short Splines",
description="keep short splines (less then 7 points)",
More information about the Bf-extensions-cvs
mailing list