Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Meyer <florianfelix@web.de>2010-06-18 16:13:13 +0400
committerFlorian Meyer <florianfelix@web.de>2010-06-18 16:13:13 +0400
commit79712a55c44dbeddafebce8d137a11c15431b14c (patch)
treedf00b64ea1b79eedbeff51ec53d516ee38f0f480 /curve_simplify.py
parentc6ce31d6d6db184e35e1755b8ae7d924af37726a (diff)
saner multiplier for curvature threshold, more precision
Diffstat (limited to 'curve_simplify.py')
-rw-r--r--curve_simplify.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/curve_simplify.py b/curve_simplify.py
index 70e9f825..bd0c7157 100644
--- a/curve_simplify.py
+++ b/curve_simplify.py
@@ -78,7 +78,7 @@ def simplypoly(splineVerts, options):
# tested against averaged curvatures and distances of neighbour verts
newVerts.append(0) # first vert is always kept
for i, curv in enumerate(curvatures):
- if (curv >= k_thresh*0.1
+ if (curv >= k_thresh*0.01
or distances[i] >= dis_error*0.1):
newVerts.append(i)
newVerts.append(len(curvatures)-1) # last vert is always kept
@@ -474,7 +474,7 @@ class CURVE_OT_simplify(bpy.types.Operator):
items=SplineTypes)
k_thresh = FloatProperty(name="k",
min=0, soft_min=0,
- default=0,
+ default=0, precision=3,
description="threshold")
pointsNr = IntProperty(name="n",
min=5, soft_min=5,