Update TPU toy cubes

This commit is contained in:
Stefan Thoss
2025-07-17 13:38:26 -07:00
parent 23aae4fd59
commit 927ea506fd
25 changed files with 137878 additions and 17 deletions
+1 -10
View File
@@ -138,13 +138,6 @@ Model files:
* m5-atom-echo-hsw-mount.scad
## magnet-mount
Model files:
* magnet-mount.scad
## map-wall-clamp
![map-wall-clamp.png](map-wall-clamp/map-wall-clamp.png)
@@ -229,11 +222,9 @@ Model files:
## 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)
![octagon_simple.png](toy-cubes/octagon_simple.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:
+14
View File
@@ -0,0 +1,14 @@
SCAD=toy-cubes.scad
SUFFIX=.stl
# match "module foobar() { // `make` me"
TARGETS != sed -n 's/^module *\([A-Za-z0-9_-]*\)(.*) *.*make.* me.*$$/\1$(SUFFIX)/p' $(SCAD)
$(shell mkdir -p output)
all: ${TARGETS}
.SUFFIXES: ${SUFFIX}
${TARGETS}: $(SCAD)
echo -e 'use <$(SCAD)>;\n$*();' | openscad -m make -o output/$@ -
Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 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.
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.
Binary file not shown.
Binary file not shown.
+15 -7
View File
@@ -4,8 +4,6 @@ cube_h = 40;
cube_w = 40;
rounding = 2;
cube_diag = cube_w*sqrt(2);
cutout_d = 20;
$fn=150;
@@ -33,7 +31,7 @@ module cube_long_with_round_hole() { // make me
/* Cylinders */
module cylinder_simple() { // make me
cyl(d=cube_diag, h=cube_h, rounding=rounding);
cyl(d=(4*cube_w)/PI, h=cube_h, rounding=rounding);
}
module cylinder_with_round_hole() { // make me
@@ -46,7 +44,7 @@ module cylinder_with_round_hole() { // make me
/* 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);
rounded_prism(regular_ngon(n=3, side=(4*cube_w)/3), joint_top=rounding, joint_bot=rounding, joint_sides=rounding, h=cube_h);
}
module triangle_with_round_hole() { // make me
@@ -59,7 +57,7 @@ module triangle_with_round_hole() { // make me
/* 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);
rounded_prism(regular_ngon(n=5, side=(4*cube_w)/5), joint_top=rounding, joint_bot=rounding, joint_sides=rounding, h=cube_h);
}
module pentagon_with_round_hole() { // make me
@@ -72,7 +70,7 @@ module pentagon_with_round_hole() { // make me
/* 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);
rounded_prism(regular_ngon(n=6, side=(4*cube_w)/6), joint_top=rounding, joint_bot=rounding, joint_sides=rounding, h=cube_h);
}
module hexagon_with_round_hole() { // make me
@@ -82,5 +80,15 @@ module hexagon_with_round_hole() { // make me
}
}
/* Octagon */
cube_with_round_hole();
module octagon_simple() { // make me
rounded_prism(regular_ngon(n=8, side=(4*cube_w)/8), joint_top=rounding, joint_bot=rounding, joint_sides=rounding, h=cube_h);
}
module octagon_with_round_hole() { // make me
difference() {
octagon_simple();
cyl(h=cube_h, d=cutout_d, chamfer=-rounding/2);
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB