[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [846] contrib/py/scripts/addons/ add_mesh_BoltFactory: Fixed bugs.
Aaron Keith
aaroninusa at gmail.com
Sat Jul 24 22:00:09 CEST 2010
Revision: 846
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=846
Author: spudmn
Date: 2010-07-24 22:00:09 +0200 (Sat, 24 Jul 2010)
Log Message:
-----------
Fixed bugs. Head height and Head Dia where transposed. Fixed the normals for Cap,Pan and Dome heads. Enabled lock nut.
Modified Paths:
--------------
contrib/py/scripts/addons/add_mesh_BoltFactory/Boltfactory.py
contrib/py/scripts/addons/add_mesh_BoltFactory/createMesh.py
Modified: contrib/py/scripts/addons/add_mesh_BoltFactory/Boltfactory.py
===================================================================
--- contrib/py/scripts/addons/add_mesh_BoltFactory/Boltfactory.py 2010-07-23 20:59:57 UTC (rev 845)
+++ contrib/py/scripts/addons/add_mesh_BoltFactory/Boltfactory.py 2010-07-24 20:00:09 UTC (rev 846)
@@ -123,15 +123,15 @@
min = 0, soft_min = 0, max = MAX_INPUT_NUMBER,
description='Flat Distance of the Hex Head')
- bf_Cap_Head_Dia = FloatProperty( attr='bf_Cap_Head_Dia',
+ bf_Cap_Head_Height = FloatProperty( attr='bf_Cap_Head_Height',
name='Head Height', default = 5.5,
min = 0, soft_min = 0, max = MAX_INPUT_NUMBER,
- description='Diameter of the Cap Head')
+ description='Height of the Cap Head')
- bf_Cap_Head_Height = FloatProperty( attr='bf_Cap_Head_Height',
+ bf_Cap_Head_Dia = FloatProperty( attr='bf_Cap_Head_Dia',
name='Head Dia', default = 3,
min = 0, soft_min = 0, max = MAX_INPUT_NUMBER,
- description='Height of the Cap Head')
+ description='Diameter of the Cap Head')
bf_Dome_Head_Dia = FloatProperty( attr='bf_Dome_Head_Dia',
name='Dome Head Dia', default = 5.6,
@@ -252,8 +252,10 @@
col.prop(props,'bf_Crest_Percent')
col.prop(props,'bf_Root_Percent')
#Nut
- col.prop(props,'bf_Hex_Nut_Height')
- col.prop(props,'bf_Hex_Nut_Flat_Distance')
+ if props.bf_Model_Type == 'bf_Model_Nut':
+ col.prop(props, 'bf_Nut_Type')
+ col.prop(props,'bf_Hex_Nut_Height')
+ col.prop(props,'bf_Hex_Nut_Flat_Distance')
##### POLL #####
@@ -288,4 +290,4 @@
self.align_matrix = align_matrix(context)
self.execute(context)
- return {'FINISHED'}
\ No newline at end of file
+ return {'FINISHED'}
Modified: contrib/py/scripts/addons/add_mesh_BoltFactory/createMesh.py
===================================================================
--- contrib/py/scripts/addons/add_mesh_BoltFactory/createMesh.py 2010-07-23 20:59:57 UTC (rev 845)
+++ contrib/py/scripts/addons/add_mesh_BoltFactory/createMesh.py 2010-07-24 20:00:09 UTC (rev 846)
@@ -577,7 +577,7 @@
sVerts,sFaces = SpinDup(verts,faces,360,DIV,'z')
sVerts.extend(verts) #add the start verts to the Spin verts to complete the loop
- faces.extend(Build_Face_List_Quads(FaceStart,Row-1,DIV))
+ faces.extend(Build_Face_List_Quads(FaceStart,Row-1,DIV,1))
Global_Head_Height = HEIGHT ;
@@ -645,7 +645,7 @@
sVerts,sFaces = SpinDup(verts,faces,360,DIV,'z')
sVerts.extend(verts) #add the start verts to the Spin verts to complete the loop
- faces.extend(Build_Face_List_Quads(FaceStart,Row-1,DIV))
+ faces.extend(Build_Face_List_Quads(FaceStart,Row-1,DIV,1))
return sVerts,faces,Dome_Height
@@ -697,7 +697,7 @@
sVerts.extend(verts) #add the start verts to the Spin verts to complete the loop
- faces.extend(Build_Face_List_Quads(FaceStart,Row-1,DIV))
+ faces.extend(Build_Face_List_Quads(FaceStart,Row-1,DIV,1))
return sVerts,faces,HEIGHT+RAD2
@@ -1599,8 +1599,8 @@
sVerts,sFaces = SpinDup(verts,faces,360,DIV,'z')
sVerts.extend(verts) #add the start verts to the Spin verts to complete the loop
- faces.extend(Build_Face_List_Quads(FaceStart,Row-1,DIV,1))
-
+ faces.extend(Build_Face_List_Quads(FaceStart,Row-1,DIV))
+
return Move_Verts_Up_Z(sVerts,0),faces,Lowest_Z_Vert
@@ -1653,7 +1653,7 @@
sVerts,sFaces = SpinDup(verts,faces,360,DIV,'z')
sVerts.extend(verts) #add the start verts to the Spin verts to complete the loop
- faces.extend(Build_Face_List_Quads(FaceStart,Row-1,DIV,1))
+ faces.extend(Build_Face_List_Quads(FaceStart,Row-1,DIV))
return sVerts,faces,0 - Lowest_Z_Vert
More information about the Bf-extensions-cvs
mailing list