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() {
|
|
||||||
difference() {
|
offset(r_skel)
|
||||||
square([l-2*r_skel+2*d_clear,l-2*r_skel+2*d_clear], center = true);
|
difference() {
|
||||||
pattern_circular(4)
|
square(l-2*r_skel+2*d_clear, center = true);
|
||||||
translate([l_grid/2-d_hole_from_side,l_grid/2-d_hole_from_side,0])
|
|
||||||
minkowski() {
|
hole_pattern()
|
||||||
square([l,l]);
|
offset(MAGNET_HOLE_RADIUS+r_skel+2)
|
||||||
circle(MAGNET_HOLE_RADIUS+r_skel+2);
|
square([l,l]);
|
||||||
}
|
|
||||||
}
|
|
||||||
circle(r_skel);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue