More toy cubes

This commit is contained in:
Stefan Thoss
2025-06-25 15:53:22 -07:00
parent 1995f68c5c
commit c01ea213f5
23 changed files with 98 additions and 24 deletions
+12 -8
View File
@@ -29,14 +29,6 @@ Model files:
* brio-tunnel-block.scad * 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
![cube-with-square-hole.png](cube-with-square-hole/cube-with-square-hole.png) ![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 * 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 ## toy-pylon
Binary file not shown.
Binary file not shown.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 94 KiB

@@ -1,16 +0,0 @@
/* https://github.com/BelfrySCAD/BOSL2 */
include <BOSL2/std.scad>
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);
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.
+86
View File
@@ -0,0 +1,86 @@
include <BOSL2/std.scad>
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();
Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB