Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
blender-addons
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blender
blender-addons
Commits
0a9eaafc
Commit
0a9eaafc
authored
14 years ago
by
Florian Meyer
Browse files
Options
Downloads
Patches
Plain Diff
more updates to defaults
parent
79712a55
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
curve_simplify.py
+6
-9
6 additions, 9 deletions
curve_simplify.py
with
6 additions
and
9 deletions
curve_simplify.py
+
6
−
9
View file @
0a9eaafc
...
@@ -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)
"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment