diff options
author | Florian Meyer <florianfelix@web.de> | 2010-06-19 07:50:19 +0400 |
---|---|---|
committer | Florian Meyer <florianfelix@web.de> | 2010-06-19 07:50:19 +0400 |
commit | 0a9eaafc99bda2a49732ba6404af08a9431d64fc (patch) | |
tree | ad6687cfb7e23c01de8f81d76af0a06d23bf2ced | |
parent | 79712a55c44dbeddafebce8d137a11c15431b14c (diff) |
more updates to defaults
-rw-r--r-- | curve_simplify.py | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/curve_simplify.py b/curve_simplify.py index bd0c7157..a6b579f6 100644 --- a/curve_simplify.py +++ b/curve_simplify.py @@ -159,7 +159,7 @@ def iterate(points, newVerts, error): 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 @@ class GRAPH_OT_simplify(bpy.types.Operator): 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 @@ class CURVE_OT_simplify(bpy.types.Operator): 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 @@ class CURVE_OT_simplify(bpy.types.Operator): 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)", |