mirror of
https://github.com/kennetek/gridfinity-rebuilt-openscad.git
synced 2024-12-22 23:03:28 +00:00
Fix baseplate not rendering
Simplified profile_skeleton() by using `offset` instead of `minovsky`. This is much less computationally expensive, and easier to understand.
This commit is contained in:
parent
43b0b350a4
commit
388cb8dbab
1 changed files with 16 additions and 11 deletions
|
@ -182,19 +182,24 @@ module cutter_counterbore(){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief 2d Cutter to skeletonize the baseplate.
|
||||||
|
* @example difference(){
|
||||||
|
* cube(large_number);
|
||||||
|
* linear_extrude(large_number+TOLLERANCE)
|
||||||
|
* profile_skeleton();
|
||||||
|
* }
|
||||||
|
*/
|
||||||
module profile_skeleton() {
|
module profile_skeleton() {
|
||||||
l = l_grid-2*r_c2-2*r_c1;
|
l = l_grid-2*r_c2-2*r_c1;
|
||||||
minkowski() {
|
|
||||||
|
offset(r_skel)
|
||||||
difference() {
|
difference() {
|
||||||
square([l-2*r_skel+2*d_clear,l-2*r_skel+2*d_clear], center = true);
|
square(l-2*r_skel+2*d_clear, center = true);
|
||||||
pattern_circular(4)
|
|
||||||
translate([l_grid/2-d_hole_from_side,l_grid/2-d_hole_from_side,0])
|
hole_pattern()
|
||||||
minkowski() {
|
offset(MAGNET_HOLE_RADIUS+r_skel+2)
|
||||||
square([l,l]);
|
square([l,l]);
|
||||||
circle(MAGNET_HOLE_RADIUS+r_skel+2);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
circle(r_skel);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue