2019-12-07 20:41:46 +08:00
|
|
|
use <soccer_polyhedron.scad>;
|
|
|
|
|
2019-12-08 07:36:02 +08:00
|
|
|
style = "POLYHEDRON"; // [SPHERE, POLYHEDRON]
|
2019-12-07 20:41:46 +08:00
|
|
|
r = 30;
|
|
|
|
thickness = 2.5;
|
2019-12-08 07:36:02 +08:00
|
|
|
spacing = 0.3;
|
2019-12-07 20:41:46 +08:00
|
|
|
half = true;
|
|
|
|
flat_inner = true;
|
|
|
|
|
|
|
|
color("gold")
|
|
|
|
intersection() {
|
|
|
|
difference() {
|
2019-12-08 07:36:02 +08:00
|
|
|
if(style == "SPHERE") {
|
|
|
|
sphere(r);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
soccer_polyhedron(r, spacing = 0);
|
|
|
|
}
|
|
|
|
|
2019-12-07 20:41:46 +08:00
|
|
|
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);
|
|
|
|
}
|