mirror of
https://github.com/kennetek/gridfinity-rebuilt-openscad.git
synced 2024-05-15 11:54:51 +00:00
fix broken preview for skeleton with holes
This commit is contained in:
parent
c95938da94
commit
42ca2d6428
|
@ -91,27 +91,25 @@ module gridfinityBaseplate(gridx, gridy, length, dix, diy, sp, sm, sh, fitx, fit
|
|||
rounded_rectangle(dx*2, dy*2, h_base*2, r_base);
|
||||
|
||||
pattern_linear(gx, gy, length) {
|
||||
render(convexity = 6) {
|
||||
|
||||
if (sp == 1)
|
||||
translate([0,0,-off])
|
||||
cutter_weight();
|
||||
else if (sp == 2 || sp == 3)
|
||||
linear_extrude(10*(h_base+off), center = true)
|
||||
profile_skeleton();
|
||||
else if (sp == 4)
|
||||
translate([0,0,-5*(h_base+off)])
|
||||
rounded_square(length-2*r_c2-2*r_c1, 10*(h_base+off), r_fo3);
|
||||
if (sp == 1)
|
||||
translate([0,0,-off])
|
||||
cutter_weight();
|
||||
else if (sp == 2 || sp == 3)
|
||||
linear_extrude(10*(h_base+off), center = true)
|
||||
profile_skeleton();
|
||||
else if (sp == 4)
|
||||
translate([0,0,-5*(h_base+off)])
|
||||
rounded_square(length-2*r_c2-2*r_c1, 10*(h_base+off), r_fo3);
|
||||
|
||||
|
||||
hole_pattern(){
|
||||
if (sm) block_base_hole(1);
|
||||
hole_pattern(){
|
||||
if (sm) block_base_hole(1);
|
||||
|
||||
translate([0,0,-off])
|
||||
if (sh == 1) cutter_countersink();
|
||||
else if (sh == 2) cutter_counterbore();
|
||||
}
|
||||
translate([0,0,-off])
|
||||
if (sh == 1) cutter_countersink();
|
||||
else if (sh == 2) cutter_counterbore();
|
||||
}
|
||||
|
||||
}
|
||||
if (sp == 3 || sp ==4) cutter_screw_together(gx, gy, off);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue