1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-08-26 08:44:24 +02:00

Added semi_teardrop.

mouse_grommets now teardropped.
This commit is contained in:
Chris Palmer
2019-07-19 11:10:44 +01:00
parent 6238f82bf0
commit b4cc6f6c37
6 changed files with 24 additions and 3 deletions

View File

@@ -34,6 +34,18 @@ module teardrop(h, r, center = true, truncate = true) //! For making horizontal
polygon([[0, 0], [eps, 0], [0, r * sqrt(2)]]);
}
module semi_teardrop(h, r, d = undef, center = true) //! A semi teardrop in the positive Y domain
render(convexity = 5)
extrude_if(h, center)
intersection() {
R = is_undef(d) ? r : d / 2;
teardrop(r = R, h = 0);
sq = R + 1;
translate([-sq, 0])
square([2 * sq, sq]);
}
module teardrop_plus(h, r, center = true, truncate = true) //! Slightly bigger teardrop to allow for the 3D printing staircase effect
teardrop(h, r + layer_height / 4, center, truncate);