[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2485] branches/geodesic_domes/ geodesic_259.py: parabola added (works but looks strange)
Peter K.H. Gragert
pkhgragert at gmail.com
Tue Oct 18 18:11:04 CEST 2011
Revision: 2485
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2485
Author: pkhg
Date: 2011-10-18 16:11:03 +0000 (Tue, 18 Oct 2011)
Log Message:
-----------
parabola added (works but looks strange)
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:04:11 UTC (rev 2484)
+++ branches/geodesic_domes/geodesic_259.py 2011-10-18 16:11:03 UTC (rev 2485)
@@ -40,7 +40,8 @@
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':
+ if chosen_type == 'Sphere' or chosen_type == 'Cylinder' \
+ or chosen_type == 'Parabola':
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 = 10 #seams to be scaling from center in r direction
@@ -59,6 +60,9 @@
elif chosen_type == 'Cylinder':
cylinder = forms_259.cylinder(uresolution,vresolution,uscale,vscale,upart,vpart,uphase,vphase,utwist,vtwist,xscale,yscale,superformparam)
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)
return {'FINISHED'}
def get_chosen_type(context):
More information about the Bf-extensions-cvs
mailing list