diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2012-07-03 23:10:59 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2012-07-03 23:10:59 +0400 |
commit | 5092eeaaee1b532581c6eea4c0421fe42626998b (patch) | |
tree | a7bf1c4ce656079947d074efb9def733fbac4a2b /add_curve_ivygen.py | |
parent | 94e23455d4ecef546c05d51daf42d744aaf5b79c (diff) |
Spell and typo fixes.
Diffstat (limited to 'add_curve_ivygen.py')
-rw-r--r-- | add_curve_ivygen.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/add_curve_ivygen.py b/add_curve_ivygen.py index 26770fda..ab38d253 100644 --- a/add_curve_ivygen.py +++ b/add_curve_ivygen.py @@ -109,7 +109,7 @@ def createIvyGeometry(IVY, growLeaves): node = root.ivyNodes[i] nodeNext = root.ivyNodes[i + 1] - # Find the weight and normalise the smooth adhesion vector + # Find the weight and normalize the smooth adhesion vector weight = pow(node.length * prevIvyLength, 0.7) # Calculate the ground ivy and the new weight @@ -276,7 +276,7 @@ class Ivy: self.maxAdhesionDistance = maxAdhesionDistance self.maxLength = 0.0 - # Normalise all the weights only on intialisation + # Normalize all the weights only on intialisation sum = self.primaryWeight + self.randomWeight + self.adhesionWeight self.primaryWeight /= sum self.randomWeight /= sum @@ -312,7 +312,7 @@ class Ivy: # Set the primary direction from the last node primaryVector = prevIvy.primaryDir - # Make the random vector and normalise + # Make the random vector and normalize randomVector = Vector((rand_val() - 0.5, rand_val() - 0.5, rand_val() - 0.5)) + Vector((0, 0, 0.2)) randomVector.normalize() |