mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-01-17 14:18:13 +01:00
28 lines
584 B
OpenSCAD
28 lines
584 B
OpenSCAD
use <soccer_polyhedron.scad>;
|
|
|
|
style = "POLYHEDRON"; // [SPHERE, POLYHEDRON]
|
|
r = 30;
|
|
thickness = 2.5;
|
|
spacing = 0.3;
|
|
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);
|
|
} |