diff --git a/README.md b/README.md index 201961f..a75eb76 100644 --- a/README.md +++ b/README.md @@ -29,14 +29,6 @@ Model files: * brio-tunnel-block.scad -## cube-with-round-hole - -![cube-with-round-hole.png](cube-with-round-hole/cube-with-round-hole.png) - -Model files: - -* cube-with-round-hole.scad - ## cube-with-square-hole ![cube-with-square-hole.png](cube-with-square-hole/cube-with-square-hole.png) @@ -227,6 +219,18 @@ Model files: * thirdreality-zigbee-sensor-mount.scad +## toy-cubes + +![cube_with_round_hole.png](toy-cubes/cube_with_round_hole.png) +![cylinder_with_round_hole.png](toy-cubes/cylinder_with_round_hole.png) +![hexagon_with_round_hole.png](toy-cubes/hexagon_with_round_hole.png) +![pentagon_with_round_hole.png](toy-cubes/pentagon_with_round_hole.png) +![triangle_with_round_hole.png](toy-cubes/triangle_with_round_hole.png) + +Model files: + +* toy-cubes.scad + ## toy-pylon diff --git a/cube-with-round-hole/cube-with-round-hole-long.stl b/cube-with-round-hole/cube-with-round-hole-long.stl deleted file mode 100644 index bdd85dc..0000000 Binary files a/cube-with-round-hole/cube-with-round-hole-long.stl and /dev/null differ diff --git a/cube-with-round-hole/cube-with-round-hole.3mf b/cube-with-round-hole/cube-with-round-hole.3mf deleted file mode 100644 index a6dcd69..0000000 Binary files a/cube-with-round-hole/cube-with-round-hole.3mf and /dev/null differ diff --git a/cube-with-round-hole/cube-with-round-hole.png b/cube-with-round-hole/cube-with-round-hole.png deleted file mode 100644 index 1a29d65..0000000 Binary files a/cube-with-round-hole/cube-with-round-hole.png and /dev/null differ diff --git a/cube-with-round-hole/cube-with-round-hole.scad b/cube-with-round-hole/cube-with-round-hole.scad deleted file mode 100644 index 6181591..0000000 --- a/cube-with-round-hole/cube-with-round-hole.scad +++ /dev/null @@ -1,16 +0,0 @@ -/* https://github.com/BelfrySCAD/BOSL2 */ -include - -cube_h = 40; -cube_w = 40; -cube_d = 40; -cutout_d = 20; -rounding = 2; - -$fn=150; - -difference() { - cuboid([cube_w,cube_w,cube_h], rounding=rounding); - - cyl(h=cube_h, d=cutout_d, chamfer=-rounding/2); -} diff --git a/toy-cubes/cube_with_round_hole.png b/toy-cubes/cube_with_round_hole.png new file mode 100644 index 0000000..39c7a7f Binary files /dev/null and b/toy-cubes/cube_with_round_hole.png differ diff --git a/toy-cubes/cylinder_with_round_hole.png b/toy-cubes/cylinder_with_round_hole.png new file mode 100644 index 0000000..a0c574d Binary files /dev/null and b/toy-cubes/cylinder_with_round_hole.png differ diff --git a/toy-cubes/hexagon_with_round_hole.png b/toy-cubes/hexagon_with_round_hole.png new file mode 100644 index 0000000..e0f483c Binary files /dev/null and b/toy-cubes/hexagon_with_round_hole.png differ diff --git a/toy-cubes/output/cube_long_with_round_hole.stl b/toy-cubes/output/cube_long_with_round_hole.stl new file mode 100644 index 0000000..6000f42 Binary files /dev/null and b/toy-cubes/output/cube_long_with_round_hole.stl differ diff --git a/toy-cubes/output/cube_simple.stl b/toy-cubes/output/cube_simple.stl new file mode 100644 index 0000000..2c345ed Binary files /dev/null and b/toy-cubes/output/cube_simple.stl differ diff --git a/cube-with-round-hole/cube-with-round-hole.stl b/toy-cubes/output/cube_with_round_hole.stl similarity index 95% rename from cube-with-round-hole/cube-with-round-hole.stl rename to toy-cubes/output/cube_with_round_hole.stl index d03067c..b5a6c99 100644 Binary files a/cube-with-round-hole/cube-with-round-hole.stl and b/toy-cubes/output/cube_with_round_hole.stl differ diff --git a/toy-cubes/output/cylinder_simple.stl b/toy-cubes/output/cylinder_simple.stl new file mode 100644 index 0000000..f4241d5 Binary files /dev/null and b/toy-cubes/output/cylinder_simple.stl differ diff --git a/toy-cubes/output/cylinder_with_round_hole.stl b/toy-cubes/output/cylinder_with_round_hole.stl new file mode 100644 index 0000000..5f5f2ce Binary files /dev/null and b/toy-cubes/output/cylinder_with_round_hole.stl differ diff --git a/toy-cubes/output/hexagon_simple.stl b/toy-cubes/output/hexagon_simple.stl new file mode 100644 index 0000000..d00851f Binary files /dev/null and b/toy-cubes/output/hexagon_simple.stl differ diff --git a/toy-cubes/output/hexagon_with_round_hole.stl b/toy-cubes/output/hexagon_with_round_hole.stl new file mode 100644 index 0000000..1bfffed Binary files /dev/null and b/toy-cubes/output/hexagon_with_round_hole.stl differ diff --git a/toy-cubes/output/pentagon_simple.stl b/toy-cubes/output/pentagon_simple.stl new file mode 100644 index 0000000..d193313 Binary files /dev/null and b/toy-cubes/output/pentagon_simple.stl differ diff --git a/toy-cubes/output/pentagon_with_round_hole.stl b/toy-cubes/output/pentagon_with_round_hole.stl new file mode 100644 index 0000000..29fe3b7 Binary files /dev/null and b/toy-cubes/output/pentagon_with_round_hole.stl differ diff --git a/toy-cubes/output/triangle_simple.stl b/toy-cubes/output/triangle_simple.stl new file mode 100644 index 0000000..90c33f5 Binary files /dev/null and b/toy-cubes/output/triangle_simple.stl differ diff --git a/toy-cubes/output/triangle_with_round_hole.stl b/toy-cubes/output/triangle_with_round_hole.stl new file mode 100644 index 0000000..163edad Binary files /dev/null and b/toy-cubes/output/triangle_with_round_hole.stl differ diff --git a/toy-cubes/pentagon_with_round_hole.png b/toy-cubes/pentagon_with_round_hole.png new file mode 100644 index 0000000..0d4d0e9 Binary files /dev/null and b/toy-cubes/pentagon_with_round_hole.png differ diff --git a/toy-cubes/toy-cubes.3mf b/toy-cubes/toy-cubes.3mf new file mode 100644 index 0000000..9f0ede7 Binary files /dev/null and b/toy-cubes/toy-cubes.3mf differ diff --git a/toy-cubes/toy-cubes.scad b/toy-cubes/toy-cubes.scad new file mode 100644 index 0000000..aca03dc --- /dev/null +++ b/toy-cubes/toy-cubes.scad @@ -0,0 +1,86 @@ +include + +cube_h = 40; +cube_w = 40; +rounding = 2; + +cube_diag = cube_w*sqrt(2); + +cutout_d = 20; + +$fn=150; + +/* Cubes */ + +module cube_simple() { // make me + cuboid([cube_w,cube_w,cube_h], rounding=rounding); +} + +module cube_with_round_hole() { // make me + difference() { + cube_simple(); + cyl(h=cube_h, d=cutout_d, chamfer=-rounding/2); + } +} + +module cube_long_with_round_hole() { // make me + difference() { + cuboid([cube_w,cube_w,2*cube_h], rounding=rounding); + cyl(h=2*cube_h, d=cutout_d, chamfer=-rounding/2); + } +} + +/* Cylinders */ + +module cylinder_simple() { // make me + cyl(d=cube_diag, h=cube_h, rounding=rounding); +} + +module cylinder_with_round_hole() { // make me + difference() { + cylinder_simple(); + cyl(h=cube_h, d=cutout_d, chamfer=-rounding/2); + } +} + +/* Triangle */ + +module triangle_simple() { // make me + rounded_prism(regular_ngon(n=3, od=cube_diag), joint_top=rounding, joint_bot=rounding, joint_sides=rounding, h=cube_h); +} + +module triangle_with_round_hole() { // make me + difference() { + triangle_simple(); + cyl(h=cube_h, d=cutout_d, chamfer=-rounding/2); + } +} + +/* Pentagon */ + +module pentagon_simple() { // make me + rounded_prism(regular_ngon(n=5, od=cube_diag), joint_top=rounding, joint_bot=rounding, joint_sides=rounding, h=cube_h); +} + +module pentagon_with_round_hole() { // make me + difference() { + pentagon_simple(); + cyl(h=cube_h, d=cutout_d, chamfer=-rounding/2); + } +} + +/* Hexagon */ + +module hexagon_simple() { // make me + rounded_prism(regular_ngon(n=6, od=cube_diag), joint_top=rounding, joint_bot=rounding, joint_sides=rounding, h=cube_h); +} + +module hexagon_with_round_hole() { // make me + difference() { + hexagon_simple(); + cyl(h=cube_h, d=cutout_d, chamfer=-rounding/2); + } +} + + +cube_with_round_hole(); diff --git a/toy-cubes/triangle_with_round_hole.png b/toy-cubes/triangle_with_round_hole.png new file mode 100644 index 0000000..c3b86ae Binary files /dev/null and b/toy-cubes/triangle_with_round_hole.png differ