[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [798] branches/ivygen/ivy_test.py: took out error

Florian Meyer florianfelix at web.de
Fri Jul 16 19:24:21 CEST 2010


Revision: 798
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=798
Author:   testscreenings
Date:     2010-07-16 19:24:21 +0200 (Fri, 16 Jul 2010)

Log Message:
-----------
took out error

Modified Paths:
--------------
    branches/ivygen/ivy_test.py

Modified: branches/ivygen/ivy_test.py
===================================================================
--- branches/ivygen/ivy_test.py	2010-07-16 17:12:19 UTC (rev 797)
+++ branches/ivygen/ivy_test.py	2010-07-16 17:24:21 UTC (rev 798)
@@ -21,7 +21,7 @@
         
 def computeBoundingSphere(objs):
     #needs improvement not really a bounding sphere because of use of
-    #corners of boundboxes
+    #corners of boundboxes --> computes faster
     bb_verts = []
     for obj in objs:
         for bb_v in obj.bound_box:
@@ -127,10 +127,10 @@
 
 
 def main(context, props):
-    seedPoint = context.scene.cursor_location
-    gravity = mathutils.Vector((0,0,-1))
-    upVector = mathutils.Vector((0,0,1))
-    random.seed(props.ivySeed)
+    seedPoint = context.scene.cursor_location  #start the Ivy atexit the cursor
+    gravity = mathutils.Vector((0,0,-1))  #not used yet
+    upVector = mathutils.Vector((0,0,1))  #not used yet
+    random.seed(props.ivySeed)  #controlling the random seed
 
     IVY = Ivy()
     IVY.ivy_Roots = [] #empty the roots list
@@ -177,11 +177,14 @@
     def execute(self, context):
         print('\n____________START_____________')
         props = self.properties
+        print(props)
+        # compute boundingSphere and put into props if abs mesh is selected
         if context.active_object and context.active_object.type == 'MESH':
             targetBoundingSphere = computeBoundingSphere(bpy.context.selected_editable_objects)
-            props.append(targetBoundingSphere)
-            
+
+
         main(context, props)
+        
         return {'FINISHED'}
 
 




More information about the Bf-extensions-cvs mailing list