1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-08-07 07:56:30 +02:00

Merge pull request #107 from martinbudden/hanging_hole_rounding

Fixed rounding error in hangin_hole assert.
This commit is contained in:
Chris
2020-12-16 21:58:40 +00:00
committed by GitHub

View File

@@ -35,7 +35,7 @@ module hanging_hole(z, ir, h = 100, h2 = 100) { //! Hole radius ```ir``` hanging
poly_cylinder(r - eps, h - layer_height); poly_cylinder(r - eps, h - layer_height);
} }
} }
assert(z % layer_height == 0, str(z)); assert(z - layer_height * floor(z / layer_height) < eps, str(z));
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;