1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 14:18:13 +01:00
dotSCAD/examples/soccer_polyhedron/soccer_jigsaw.scad
2022-06-06 13:11:46 +08:00

28 lines
581 B
OpenSCAD

use <soccer_polyhedron.scad>
style = "POLYHEDRON"; // [SPHERE, POLYHEDRON]
r = 30;
thickness = 4;
spacing = 0.4;
half = true;
flat_inner = true;
color("gold")
intersection() {
difference() {
if(style == "SPHERE") {
sphere(r);
}
else {
soccer_polyhedron(r, spacing = 0);
}
if(flat_inner) {
soccer_polyhedron(r - thickness, spacing = 0);
}
else {
sphere(r - thickness);
}
}
soccer_polyhedron(r * 1.5, spacing = spacing, jigsaw_base = true, half = half);
}