[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2477] branches/geodesic_domes/ forms_259.py: version 0.2 (cleanup)
Peter K.H. Gragert
pkhgragert at gmail.com
Tue Oct 18 11:16:03 CEST 2011
Revision: 2477
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2477
Author: pkhg
Date: 2011-10-18 09:16:03 +0000 (Tue, 18 Oct 2011)
Log Message:
-----------
version 0.2 (cleanup)
Modified Paths:
--------------
branches/geodesic_domes/forms_259.py
Modified: branches/geodesic_domes/forms_259.py
===================================================================
--- branches/geodesic_domes/forms_259.py 2011-10-18 09:15:23 UTC (rev 2476)
+++ branches/geodesic_domes/forms_259.py 2011-10-18 09:16:03 UTC (rev 2477)
@@ -1,7 +1,9 @@
+#import sys
+#sys.path.append("c:/BlenderSVN/cmake_all3/bin/2.59/scripts/addons/geodesic_domes")
import math
from math import pi,sin,cos,atan,tan,fabs
-import vefm_259
-from vefm_259 import *
+#import vefm_259
+from geodesic_domes.vefm_259 import *
#from Blender import NMesh
class form(mesh):
def __init__(self,uresolution,vresolution,uscale,vscale,upart,vpart,uphase,vphase,utwist,vtwist,xscale,yscale,sform):
@@ -117,7 +119,12 @@
def __init__(self,uresolution,vresolution,uscale,vscale,upart,vpart,uphase,vphase,utwist,vtwist,xscale,yscale,sform):
form.__init__(self,uresolution,vresolution,uscale,vscale,upart,vpart,uphase,vphase,utwist,vtwist,xscale,yscale,sform)
unit = 1.0 / self.a360
-
+ if self.ures == 1 :
+ print("\n***ERRORin forms_259.grid L121***, ures is 1, changed into 2\n\n")
+ self.ures = 2
+ if self.vres == 1 :
+ print("\n***ERROR in grid forms_259.grid L124***, vres is 1, changed into 2\n\n")
+ self.vres = 2
self.ustep = self.a360 / (self.ures - 1)
self.vstep = self.a360 / (self.vres - 1)
@@ -143,6 +150,7 @@
z = r1 * r2 - 1.0
return x,y,z
+
class cylinder(form):
def __init__(self,uresolution,vresolution,uscale,vscale,upart,vpart,uphase,vphase,utwist,vtwist,xscale,yscale,sform):
form.__init__(self,uresolution,vresolution,uscale,vscale,upart,vpart,uphase,vphase,utwist,vtwist,xscale,yscale,sform)
More information about the Bf-extensions-cvs
mailing list