Allow no center hole in extrusion.

This commit is contained in:
Martin Budden 2020-03-02 19:06:53 +00:00
parent 9527fa1c1f
commit 675953d334
1 changed files with 2 additions and 1 deletions

View File

@ -101,7 +101,8 @@ module extrusion_cross_section(type, cornerHole) {
translate([0,i*width+(width-height)/2])
difference() {
square([centerSquare,centerSquare],center=true);
circle(d=extrusion_center_hole(type));
if(extrusion_center_hole(type)>0)
circle(d=extrusion_center_hole(type));
}
translate([0,(width-height)/2])
for(angle=[0,90])