fix broken preview for skeleton with holes

This commit is contained in:
Dirk Heilig 2024-01-04 15:00:39 +01:00
parent c95938da94
commit 42ca2d6428

View file

@ -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);
}