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:
authorCampbell Barton <ideasman42@gmail.com>2011-01-18 04:58:49 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-01-18 04:58:49 +0300
commit84c40946e4197841c6345af32bab15524742fb6b (patch)
treeea7de2a1c3acd166d8f9acbfd347eb7fd68cabce /curve_simplify.py
parentee29d3dcc6e025c4627ed9edfb4c32413a4f0702 (diff)
correct bad spelling; 'indicies' --> 'indices'
Diffstat (limited to 'curve_simplify.py')
-rw-r--r--curve_simplify.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/curve_simplify.py b/curve_simplify.py
index 69ace753..43a9c4b7 100644
--- a/curve_simplify.py
+++ b/curve_simplify.py
@@ -44,7 +44,7 @@ import math
##############################
#### simplipoly algorithm ####
##############################
-# get SplineVertIndicies to keep
+# get SplineVertIndices to keep
def simplypoly(splineVerts, options):
# main vars
newVerts = [] # list of vertindices to keep
@@ -79,7 +79,7 @@ def simplypoly(splineVerts, options):
distances.append(dist)
distances.append(0.0) # last vert is always kept
- # generate list of vertindicies to keep
+ # generate list of vertindices to keep
# tested against averaged curvatures and distances of neighbour verts
newVerts.append(0) # first vert is always kept
for i, curv in enumerate(curvatures):
@@ -172,7 +172,7 @@ def iterate(points, newVerts, error):
return False
return new
-#### get SplineVertIndicies to keep
+#### get SplineVertIndices to keep
def simplify_RDP(splineVerts, options):
#main vars
error = options[4]
@@ -264,7 +264,7 @@ def main(context, obj, options):
if mode == 'curvature':
newVerts = simplypoly(splineVerts, options)
- # convert indicies into vectors3D
+ # convert indices into vectors3D
newPoints = vertsToPoints(newVerts, splineVerts, splineType)
# create new spline
@@ -324,7 +324,7 @@ def fcurves_simplify(context, obj, options, fcurves):
scene = context.scene
fcurves_obj = obj.animation_data.action.fcurves
- #get indicies of selected fcurves
+ #get indices of selected fcurves
fcurve_sel = selectedfcurves(obj)
# go through fcurves
@@ -339,7 +339,7 @@ def fcurves_simplify(context, obj, options, fcurves):
if mode == 'curvature':
newVerts = simplypoly(fcurve, options)
- # convert indicies into vectors3D
+ # convert indices into vectors3D
newPoints = []
#this is different from the main() function for normal curves, different api...