[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2557] branches/geodesic_domes/gui_pkhg .py: replaces gui_259.py (can be deleted)

Peter K.H. Gragert pkhgragert at gmail.com
Tue Nov 1 12:08:38 CET 2011


Revision: 2557
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2557
Author:   pkhg
Date:     2011-11-01 11:08:37 +0000 (Tue, 01 Nov 2011)
Log Message:
-----------
replaces gui_259.py (can be deleted)

Added Paths:
-----------
    branches/geodesic_domes/gui_pkhg.py

Added: branches/geodesic_domes/gui_pkhg.py
===================================================================
--- branches/geodesic_domes/gui_pkhg.py	                        (rev 0)
+++ branches/geodesic_domes/gui_pkhg.py	2011-11-01 11:08:37 UTC (rev 2557)
@@ -0,0 +1,698 @@
+#pkhg_test version
+import bpy
+import sys
+#sys.path.append("c:/BlenderSVN/cmake_all3/bin/2.60/scripts/addons/geodesic_domes")
+#print(sys.path)
+from geodesic_domes import kanweg
+kanweg.test()
+from geodesic_domes import vefm_259 as vefm_259
+
+from geodesic_domes import forms_259  as forms_259
+#from geodesic_domes import vefm_259 as vefm_259
+from geodesic_domes import geodesic_classes_259 as geodesic_classes_259
+import math
+from math import pi,cos, sin, sqrt
+from bpy.props import EnumProperty, IntProperty, FloatProperty, StringProperty, BoolProperty
+
+bpy.types.Scene.superformula_um = FloatProperty(name = 'um', min = 0, soft_min=0.1, soft_max=5,max = 10, default =  3)
+bpy.types.Scene.superformula_un1 = FloatProperty(name = 'un1', min = 0, soft_min=0.1, soft_max=5,max = 20, default =  1)
+bpy.types.Scene.superformula_un2 = FloatProperty(name = 'un2', min = 0, soft_min=0.1, soft_max=5,max = 10, default =  1)
+bpy.types.Scene.superformula_un3 = FloatProperty(name = 'un3', min = 0,   soft_min=0.1, soft_max=5,max = 10, default =  1)
+bpy.types.Scene.superformula_ua = FloatProperty(name = 'ua', min = 0, soft_min=0.1, soft_max=5,max = 10, default =  1.0)
+bpy.types.Scene.superformula_ub = FloatProperty(name = 'ub', min = 0, soft_min=0.1, soft_max=5,max = 10, default =  4.0)
+bpy.types.Scene.superformula_vm = FloatProperty(name = 'vm', min = 0, soft_min=0.1, soft_max=5,max = 10, default =  1)
+bpy.types.Scene.superformula_vn1 = FloatProperty(name = 'vn1', min = 0, soft_min=0.1, soft_max=5,max = 10, default =  1)
+bpy.types.Scene.superformula_vn2 = FloatProperty(name = 'vn2', min = 0, soft_min=0.1, soft_max=5,max = 10, default =  1)
+bpy.types.Scene.superformula_vn3 = FloatProperty(name = 'vn3', min = 0, soft_min=0.1, soft_max=5,max = 10, default =  1)
+bpy.types.Scene.superformula_va = FloatProperty(name = 'va', min = 0, soft_min=0.1, soft_max=5,max = 10, default =  1)
+bpy.types.Scene.superformula_vb = FloatProperty(name = 'vb', min = 0, soft_min=0.1, soft_max=5,max = 10, default =  1)
+bpy.types.Scene.superformula_uact = BoolProperty(name = 'sup u-active',default = False)
+bpy.types.Scene.superformula_vact = BoolProperty(name = 'sup v-active',default = False)
+bpy.types.Scene.superformula_uturn = FloatProperty(name = 'uturn', min = 0, soft_min=0.1, soft_max=5,max = 10, default =  0)
+bpy.types.Scene.superformula_vturn = FloatProperty(name = 'vturn', min = 0, soft_min=0.1, soft_max=5,max = 10, default =  0)
+bpy.types.Scene.superformula_utwist = FloatProperty(name = 'utwist', min = 0, soft_min=0.1, soft_max=5,max = 10, default =  0)
+bpy.types.Scene.superformula_vtwist = FloatProperty(name = 'vtwist', min = 0, soft_min=0.1, soft_max=5,max = 10, default =  0)
+#for Geodesics
+bpy.types.Scene.geodesic_frequency = IntProperty(name="Frequency",min = 1, soft_max=5, max = 10, default = 1,description="number of subdivisions")
+#for Grid
+bpy.types.Scene.grid_xres = IntProperty(name="X res",min = 1, soft_min = 2, soft_max=10, max = 20, default = 2)
+bpy.types.Scene.grid_yres = IntProperty(name="Y res",min = 1, soft_min = 2, soft_max=10, max = 20, default = 2)
+bpy.types.Scene.grid_xsize = FloatProperty(name = "X size", min = 1, soft_min=0.1, soft_max=5,max = 10, default = 2.0)
+bpy.types.Scene.grid_ysize = FloatProperty(name="Y size",min = 1, soft_min=0.1, soft_max=5,max = 10, default = 1.0)
+
+#for Cylinder
+bpy.types.Scene.cylinder_uresolution = IntProperty(name = 'uresolution', min = 2, soft_min = 4, soft_max=24, max = 36, default =  12) #PKHG 23 oct needed for cylinder
+bpy.types.Scene.cylinder_vresolution = IntProperty(name = 'vresolution', min = 2, soft_max=5, max = 10, default =  4) 
+bpy.types.Scene.cylinder_uscale = FloatProperty(name = 'radius', min = 0, soft_min = 0.1, soft_max = 4, max = 10, default =  1)   #seams to be scaling from center in r direction
+bpy.types.Scene.cylinder_vscale = FloatProperty(name = 'height', min = 0, soft_min = 0.1, soft_max = 4, max = 10, default =  1)    #expand and shift get factor vscale
+bpy.types.Scene.cylinder_upart = FloatProperty(name = 'upart(gap)', min = -4, soft_min = 0, soft_max = 1 ,max = 4, default =  1)  #PKHG default no u-gap
+bpy.types.Scene.cylinder_vpart = FloatProperty(name = 'vpart(gap)', min = -4, soft_min = 0, soft_max = 1, max = 4, default =  1)  #PKHG defalut: no v-gap
+bpy.types.Scene.cylinder_uphase = FloatProperty(name = 'uphase', min = -4, soft_min = 0, soft_max = 1 ,max = 4, default =  1) 
+bpy.types.Scene.cylinder_vphase = FloatProperty(name = 'vphase', min = -4, soft_min = 0, soft_max = 1, max = 4, default =  1) 
+bpy.types.Scene.cylinder_utwist = FloatProperty(name = 'utwist', min = -4, soft_min = 0, soft_max = 1, max = 4, default =  0) 
+bpy.types.Scene.cylinder_vtwist = FloatProperty(name = 'vtwist', min = -4, soft_min = 0, soft_max = 1, max = 4, default =  0) 
+bpy.types.Scene.cylinder_xscale = FloatProperty(name = 'xscale', min = 0, soft_min = 0.1, soft_max = 4, max = 10, default =  1)  #scale in x direction
+bpy.types.Scene.cylinder_yscale = FloatProperty(name = 'yscale', min = 0, soft_min = 0.1, soft_max = 4, max = 10, default =  1)  #scale in z direction not y ?! the heigth so to say
+
+#for Parabola
+bpy.types.Scene.parabola_uresolution = IntProperty(name = 'uresolution', min = 2, soft_min = 4, soft_max = 24, max = 36, default =  12) #PKHG 23 oct needed for parabola
+bpy.types.Scene.parabola_vresolution = IntProperty(name = 'vresolution', min = 2, soft_max = 12, max = 24, default =  6) 
+bpy.types.Scene.parabola_uscale = FloatProperty(name = 'radius', min = 0, soft_min = 0.1, soft_max = 4, max = 10, default =  1)   #seams to be scaling from center in r direction
+bpy.types.Scene.parabola_vscale = FloatProperty(name = 'height', min = 0, soft_min = 0.1, soft_max = 4, max = 10, default =  2)    #expand and shift get factor vscale
+bpy.types.Scene.parabola_upart = FloatProperty(name = 'upart(gap)', min = -4, soft_min = 0, soft_max = 1 ,max = 4, default =  1)  #PKHG default no u-gap
+bpy.types.Scene.parabola_vpart = FloatProperty(name = 'vpart(gap)', min = -4, soft_min = 0, soft_max = 1, max = 4, default =  1)  #PKHG defalut: no v-gap
+bpy.types.Scene.parabola_uphase = FloatProperty(name = 'uphase', min = -4, soft_min = 0, soft_max = 1 ,max = 4, default =  0) 
+bpy.types.Scene.parabola_vphase = FloatProperty(name = 'vphase', min = -4, soft_min = 0, soft_max = 1, max = 4, default =  0) 
+bpy.types.Scene.parabola_utwist = FloatProperty(name = 'utwist', min = -4, soft_min = 0, soft_max = 1, max = 4, default =  0) 
+bpy.types.Scene.parabola_vtwist = FloatProperty(name = 'vtwist', min = -4, soft_min = 0, soft_max = 1, max = 4, default =  0) 
+bpy.types.Scene.parabola_xscale = FloatProperty(name = 'xscale', min = 0, soft_min = 0.1, soft_max = 4, max = 10, default =  1)  #scale in x direction
+bpy.types.Scene.parabola_yscale = FloatProperty(name = 'yscale', min = 0, soft_min = 0.1, soft_max = 4, max = 10, default =  1)  #scale in z direction not y ?! the heigth so to say
+
+#for torus
+bpy.types.Scene.torus_uresolution = IntProperty(name = 'uresolution', min = 2, soft_min = 4, soft_max = 24, max = 36, default =  12) #PKHG 23 oct needed for torus
+bpy.types.Scene.torus_vresolution = IntProperty(name = 'vresolution', min = 2, soft_min = 4, soft_max = 24, max = 36, default =  12) 
+bpy.types.Scene.torus_uscale = FloatProperty(name = 'small radius', min = 0, soft_min = 0.1, soft_max = 4, max = 10, default = .25)   #seams to be scaling from center in r direction
+bpy.types.Scene.torus_vscale = FloatProperty(name = 'big radius', min = 0, soft_min = 0.1, soft_max = 4, max = 10, default =  1)    #expand and shift get factor vscale
+bpy.types.Scene.torus_upart = FloatProperty(name = 'upart(gap)', min = -4, soft_min = 0, soft_max = 1 ,max = 4, default =  1)  #PKHG default no u-gap
+bpy.types.Scene.torus_vpart = FloatProperty(name = 'vpart(gap)', min = -4, soft_min = 0, soft_max = 1, max = 4, default =  1)  #PKHG defalut: no v-gap
+bpy.types.Scene.torus_uphase = FloatProperty(name = 'uphase', min = -4, soft_min = 0, soft_max = 1 ,max = 4, default =  1) 
+bpy.types.Scene.torus_vphase = FloatProperty(name = 'vphase', min = -4, soft_min = 0, soft_max = 1, max = 4, default =  1) 
+bpy.types.Scene.torus_utwist = FloatProperty(name = 'utwist', min = -4, soft_min = 0, soft_max = 1, max = 4, default =  0) 
+bpy.types.Scene.torus_vtwist = FloatProperty(name = 'vtwist', min = -4, soft_min = 0, soft_max = 1, max = 4, default =  0) 
+bpy.types.Scene.torus_xscale = FloatProperty(name = 'xscale', min = 0, soft_min = 0.1, soft_max = 4, max = 10, default =  1)  #scale in x direction
+bpy.types.Scene.torus_yscale = FloatProperty(name = 'yscale', min = 0, soft_min = 0.1, soft_max = 4, max = 10, default =  1)  #scale in z direction not y ?! the heigth so to say
+#usuper,vsuper,usupertwist,vsupertwist needed! ???PKHG not needed?
+
+#for sphere
+bpy.types.Scene.sphere_uresolution = IntProperty(name = 'uresolution', min = 2, soft_min = 4, soft_max=24, max = 36, default =  12) #PKHG 23 oct needed for sphere
+bpy.types.Scene.sphere_vresolution = IntProperty(name = 'vresolution', min = 2, soft_min = 4, soft_max = 24, max = 36, default =  12) 
+bpy.types.Scene.sphere_uscale = FloatProperty(name = 'radius', min = 0, soft_min = 0.1, soft_max = 4, max = 10, default =  1)   #seams to be scaling from center in r direction
+bpy.types.Scene.sphere_vscale = FloatProperty(name = 'height', min = 0, soft_min = 0.1, soft_max = 4, max = 10, default =  1)    #expand and shift get factor vscale
+bpy.types.Scene.sphere_upart = FloatProperty(name = 'upart(gap)', min = -4, soft_min = 0, soft_max = 1 ,max = 4, default =  1)  #PKHG default no u-gap
+bpy.types.Scene.sphere_vpart = FloatProperty(name = 'vpart(gap)', min = -4, soft_min = 0, soft_max = 1, max = 4, default =  1)  #PKHG defalut: no v-gap
+bpy.types.Scene.sphere_uphase = FloatProperty(name = 'uphase', min = -4, soft_min = 0, soft_max = 1 ,max = 4, default =  1) 
+bpy.types.Scene.sphere_vphase = FloatProperty(name = 'vphase', min = -4, soft_min = 0, soft_max = 1, max = 4, default =  1) 

@@ Diff output truncated at 10240 characters. @@


More information about the Bf-extensions-cvs mailing list