Skip to content
Snippets Groups Projects
Commit 0a9eaafc authored by Florian Meyer's avatar Florian Meyer
Browse files

more updates to defaults

parent 79712a55
No related branches found
No related tags found
No related merge requests found
...@@ -159,7 +159,7 @@ def iterate(points, newVerts, error): ...@@ -159,7 +159,7 @@ def iterate(points, newVerts, error):
alti = altitude(points[newVerts[newIndex]], points[newVerts[newIndex+1]], point) alti = altitude(points[newVerts[newIndex]], points[newVerts[newIndex+1]], point)
if alti > alti_store: if alti > alti_store:
alti_store = alti alti_store = alti
if alti_store > error: if alti_store >= error:
bigVert = i+1+newVerts[newIndex] bigVert = i+1+newVerts[newIndex]
if bigVert: if bigVert:
new.append(bigVert) new.append(bigVert)
...@@ -378,9 +378,8 @@ class GRAPH_OT_simplify(bpy.types.Operator): ...@@ -378,9 +378,8 @@ class GRAPH_OT_simplify(bpy.types.Operator):
description="degree of curve to get averaged curvatures") description="degree of curve to get averaged curvatures")
error = FloatProperty(name="error", error = FloatProperty(name="error",
description="maximum error to allow - distance", description="maximum error to allow - distance",
min=0.0, min=0.0, soft_min=0.0,
soft_min=0.0, default=0, precision=3)
default=0.00, precision=3)
degreeOut = IntProperty(name="degree", degreeOut = IntProperty(name="degree",
min=3, soft_min=3, min=3, soft_min=3,
max=7, soft_max=7, max=7, soft_max=7,
...@@ -483,9 +482,8 @@ class CURVE_OT_simplify(bpy.types.Operator): ...@@ -483,9 +482,8 @@ class CURVE_OT_simplify(bpy.types.Operator):
description="degree of curve to get averaged curvatures") description="degree of curve to get averaged curvatures")
error = FloatProperty(name="error in Bu", error = FloatProperty(name="error in Bu",
description="maximum error in Blenderunits to allow - distance", description="maximum error in Blenderunits to allow - distance",
min=0, min=0, soft_min=0,
soft_min=0, default=0.0, precision=3)
default=0.0)
degreeOut = IntProperty(name="degree", degreeOut = IntProperty(name="degree",
min=3, soft_min=3, min=3, soft_min=3,
max=7, soft_max=7, max=7, soft_max=7,
...@@ -493,8 +491,7 @@ class CURVE_OT_simplify(bpy.types.Operator): ...@@ -493,8 +491,7 @@ class CURVE_OT_simplify(bpy.types.Operator):
description="degree of new curve") description="degree of new curve")
dis_error = FloatProperty(name="distance error", dis_error = FloatProperty(name="distance error",
description="maximum error in Blenderunits to allow - distance", description="maximum error in Blenderunits to allow - distance",
min=0, min=0, soft_min=0,
soft_min=0,
default=0.0) default=0.0)
keepShort = BoolProperty(name="keep short Splines", keepShort = BoolProperty(name="keep short Splines",
description="keep short splines (less then 7 points)", description="keep short splines (less then 7 points)",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment