only special case now is 1 column or 1 row
This commit is contained in:
@@ -154,38 +154,6 @@ module frame_1x(c)
|
||||
}
|
||||
}
|
||||
|
||||
module frame_x2(c)
|
||||
{
|
||||
difference()
|
||||
{
|
||||
frame_base();
|
||||
|
||||
translate([0,total_height/2-gap/2,base_thickness])
|
||||
cube([total_width-2*nozzle_width,gap,depth]);
|
||||
|
||||
if (c>1)
|
||||
for (i=[1:c-1])
|
||||
translate([i*total_width/x_count-gap/2,2*nozzle_width,base_thickness])
|
||||
cube([gap,total_height-4*nozzle_width,depth]);
|
||||
}
|
||||
}
|
||||
|
||||
module frame_2x(c)
|
||||
{
|
||||
difference()
|
||||
{
|
||||
frame_base();
|
||||
|
||||
translate([total_width/2-gap/2,0,base_thickness])
|
||||
cube([gap,total_height-2*nozzle_width,depth]);
|
||||
|
||||
if (c>1)
|
||||
for (i=[1:c-1])
|
||||
translate([2*nozzle_width,i*total_height/y_count-gap/2,base_thickness])
|
||||
cube([total_width-4*nozzle_width,gap,depth]);
|
||||
}
|
||||
}
|
||||
|
||||
module frame_x(c,d)
|
||||
{
|
||||
difference()
|
||||
@@ -220,10 +188,6 @@ if (make_frame==1)
|
||||
frame_x1(x_count);
|
||||
else if (x_count==1)
|
||||
frame_1x(y_count);
|
||||
// else if (y_count==2)
|
||||
// frame_x2(x_count);
|
||||
// else if (x_count==2)
|
||||
// frame_2x(y_count);
|
||||
else
|
||||
frame_x(x_count,y_count);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user