[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2487] branches/geodesic_domes/ geodesic_259.py: one print removed, another print with better info
Peter K.H. Gragert
pkhgragert at gmail.com
Tue Oct 18 18:30:36 CEST 2011
Revision: 2487
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2487
Author: pkhg
Date: 2011-10-18 16:30:36 +0000 (Tue, 18 Oct 2011)
Log Message:
-----------
one print removed, another print with better info
Modified Paths:
--------------
branches/geodesic_domes/geodesic_259.py
Modified: branches/geodesic_domes/geodesic_259.py
===================================================================
--- branches/geodesic_domes/geodesic_259.py 2011-10-18 16:14:11 UTC (rev 2486)
+++ branches/geodesic_domes/geodesic_259.py 2011-10-18 16:30:36 UTC (rev 2487)
@@ -7,9 +7,9 @@
def generate(context):
from geodesic_domes import forms_259
from geodesic_domes import vefm_259
- print("generate called")
+# print("generate called")
chosen_type = get_chosen_type(context)
- print("type chosen =", chosen_type)
+ print("\n***INFO*** geodesic_259 generate*** type chosen = ", chosen_type)
um = context.scene.superformula_um
un1 = context.scene.superformula_un1
un2 = context.scene.superformula_un2
@@ -40,8 +40,9 @@
grysz = context.scene.grid_ysize
grid=forms_259.grid(grxres,gryres,grxsz,grysz,1.0,1.0,0,0,0,0,1.0,1.0,superformparam)
vefm_259.vefm_add_object(grid)
- if chosen_type == 'Sphere' or chosen_type == 'Cylinder' \
- or chosen_type == 'Parabola':
+# if chosen_type == 'Sphere' or chosen_type == 'Cylinder' \
+# or chosen_type == 'Parabola' or chosen_type == 'Torus':
+ if chosen_type in ['Sphere', 'Cylinder', 'Parabola', 'Torus']:
uresolution = context.scene.sphere_xres #number of lines N-S (u coordinate)
vresolution = context.scene.sphere_yres #number of lines O-W (v cordinate)
uscale = 1 #seams to be scaling from center in r direction
@@ -62,11 +63,14 @@
vefm_259.vefm_add_object(cylinder)
elif chosen_type == 'Parabola':
parabola = forms_259.parabola(uresolution,vresolution,uscale,vscale,upart,vpart,uphase,vphase,utwist,vtwist,xscale,yscale,superformparam)
- vefm_259.vefm_add_object(parabola)
+ vefm_259.vefm_add_object(parabola)
+ elif chosen_type == 'Torus':
+ torus = forms_259.parabola(uresolution,vresolution,uscale,vscale,upart,vpart,uphase,vphase,utwist,vtwist,xscale,yscale,superformparam)
+ vefm_259.vefm_add_object(torus)
+
return {'FINISHED'}
def get_chosen_type(context):
- print("\n============= get_chosen_type!")
chosen_type = context.scene.choose_type
posible_types = {'0':'Geodesic',
'1':'Grid',
More information about the Bf-extensions-cvs
mailing list