1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-17 20:11:50 +02:00

add style param

This commit is contained in:
Justin Lin
2019-12-08 07:36:02 +08:00
parent 9b85b09878
commit 082689db2a

View File

@@ -1,15 +1,22 @@
use <soccer_polyhedron.scad>;
style = "POLYHEDRON"; // [SPHERE, POLYHEDRON]
r = 30;
thickness = 2.5;
spacing = 0.4;
spacing = 0.3;
half = true;
flat_inner = true;
color("gold")
intersection() {
difference() {
sphere(r);
if(style == "SPHERE") {
sphere(r);
}
else {
soccer_polyhedron(r, spacing = 0);
}
if(flat_inner) {
soccer_polyhedron(r - thickness, spacing = 0);
}