mirror of
https://github.com/nophead/NopSCADlib.git
synced 2025-09-06 05:12:54 +02:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
fa658d9eaa | ||
|
6d3f54b7a5 | ||
|
cbd3cf29af |
BIN
libtest.png
BIN
libtest.png
Binary file not shown.
Before Width: | Height: | Size: 854 KiB After Width: | Height: | Size: 854 KiB |
Binary file not shown.
Before Width: | Height: | Size: 146 KiB After Width: | Height: | Size: 148 KiB |
@@ -25,16 +25,16 @@ module polysink_stl() {
|
||||
n = len(cs_screws);
|
||||
size = [n * 20, 20, 10];
|
||||
difference() {
|
||||
translate([-size.x / n / 2, $preview ? 0 : -size.y / 2, -size.z])
|
||||
translate([-size.x / n / 2, $preview ? 0 : -size.y / 2])
|
||||
cube($preview ? [size.x, size.y / 2, size.z] : size);
|
||||
|
||||
for(i = [0 : n - 1])
|
||||
let(s = cs_screws[i])
|
||||
translate([i * 20, 0]) {
|
||||
screw_polysink(s, 2 * size.z + 1);
|
||||
translate_z(size.z)
|
||||
screw_polysink(s, 2 * size.z + 1);
|
||||
|
||||
translate_z(-size.z)
|
||||
screw_polysink(s, 2 * size.z + 1, alt = true);
|
||||
screw_polysink(s, 2 * size.z + 1, alt = true);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -52,7 +52,7 @@ module screws() {
|
||||
screw(screw, length);
|
||||
}
|
||||
}
|
||||
translate([80, 140])
|
||||
translate([80, 20])
|
||||
polysink_stl();
|
||||
}
|
||||
|
||||
|
@@ -35,7 +35,7 @@ module hanging_hole(z, ir, h = 100, h2 = 100) { //! Hole radius ```ir``` hanging
|
||||
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;
|
||||
below = min(z + eps, h2);
|
||||
big = 1000;
|
||||
|
Reference in New Issue
Block a user