mirror of
https://github.com/nophead/NopSCADlib.git
synced 2025-08-13 19:03:58 +02:00
Hanging hole now works when the hole has only four sides.
This commit is contained in:
@@ -39,11 +39,13 @@ module hanging_hole(z, ir, h = 100, h2 = 100) { //! Hole radius ```ir``` hanging
|
|||||||
infill_angle = z % (2 * layer_height) ? -45 : 45;
|
infill_angle = z % (2 * layer_height) ? -45 : 45;
|
||||||
below = min(z + eps, h2);
|
below = min(z + eps, h2);
|
||||||
big = 1000;
|
big = 1000;
|
||||||
|
|
||||||
render(convexity = 3) translate_z(z)
|
render(convexity = 3) translate_z(z)
|
||||||
union() {
|
union() {
|
||||||
translate_z(2 * layer_height)
|
translate_z(2 * layer_height)
|
||||||
|
if(sides(ir) > 4)
|
||||||
polyhole(ir - eps, h - 2 * layer_height);
|
polyhole(ir - eps, h - 2 * layer_height);
|
||||||
|
else
|
||||||
|
poly_cylinder(ir, h - 2 * layer_height);
|
||||||
|
|
||||||
difference() {
|
difference() {
|
||||||
translate_z(-below)
|
translate_z(-below)
|
||||||
|
Reference in New Issue
Block a user