From e92e7f6dbc011d675900ddeab9a1690340929807 Mon Sep 17 00:00:00 2001 From: Revar Desmera Date: Thu, 21 Feb 2019 19:32:04 -0800 Subject: [PATCH] Tweaked chamfer_mask_[xyz] examples. --- masks.scad | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/masks.scad b/masks.scad index 91a2c7d..d164b3b 100644 --- a/masks.scad +++ b/masks.scad @@ -95,7 +95,10 @@ module angle_pie_mask( // l = Height of mask // chamfer = size of chamfer // Example: -// chamfer_mask_z(l=10.0, chamfer=2.0); +// difference() { +// down(5) cube(10); +// chamfer_mask_z(l=10.1, chamfer=2.0); +// } module chamfer_mask_z(l=1.0, chamfer=1.0) { zrot(45) cube(size=[chamfer*sqrt(2.0), chamfer*sqrt(2.0), l], center=true); } @@ -107,7 +110,10 @@ module chamfer_mask_z(l=1.0, chamfer=1.0) { // l = Height of mask // chamfer = size of chamfer // Example: -// chamfer_mask_y(l=10.0, chamfer=2.0); +// difference() { +// fwd(5) cube(10); +// chamfer_mask_y(l=10.1, chamfer=2.0); +// } module chamfer_mask_y(l=1.0, chamfer=1.0) { xrot(90) chamfer_mask_z(l=l, chamfer=chamfer); } @@ -119,7 +125,10 @@ module chamfer_mask_y(l=1.0, chamfer=1.0) { // l = Height of mask // chamfer = size of chamfer // Example: -// chamfer_mask_x(l=10.0, chamfer=2.0); +// difference() { +// left(5) cube(10); +// chamfer_mask_x(l=10.1, chamfer=2.0); +// } module chamfer_mask_x(l=1.0, chamfer=1.0) { yrot(90) chamfer_mask_z(l=l, chamfer=chamfer); }