Merge pull request #17 from stansu/master

fix for 1x1 brick
This commit is contained in:
Dave Cowden 2014-12-08 16:46:41 -05:00
commit 6fea428b8f

View File

@ -6,8 +6,8 @@ import Part
##### #####
# Inputs # Inputs
###### ######
lbumps = 4 # number of bumps long lbumps = 1 # number of bumps long
wbumps = 4 # number of bumps wide wbumps = 1 # number of bumps wide
thickness = 3.2 # this is a thin lego thickness = 3.2 # this is a thin lego
# thickness = 9.6 # a thick lego # thickness = 9.6 # a thick lego
@ -49,5 +49,7 @@ elif lbumps > 1:
elif wbumps > 1: elif wbumps > 1:
tmp = tmp.rarray(pitch, pitch, 1, wbumps - 1, center=True). \ tmp = tmp.rarray(pitch, pitch, 1, wbumps - 1, center=True). \
circle(t).extrude(height - t) circle(t).extrude(height - t)
else:
tmp = s
Part.show(tmp.toFreecad()) Part.show(tmp.toFreecad())