mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-09-01 02:33:00 +02:00
change param
This commit is contained in:
@@ -1,16 +1,18 @@
|
||||
module soccer_polyhedron(circumradius, r_offset = 0) {
|
||||
module soccer_polyhedron(circumradius, spacing) {
|
||||
tau = 1.618034;
|
||||
a = -37.377368;
|
||||
scale_f = 0.201774;
|
||||
r_off = scale_f * r_offset;
|
||||
|
||||
s = scale_f * spacing;
|
||||
|
||||
module pentagonal_pyramid() {
|
||||
pentagon_r = 1.701302;
|
||||
pentagon_h = 4.654877;
|
||||
h_off = s * 3.381965;
|
||||
|
||||
color("black")
|
||||
translate([0, 0, -pentagon_h - r_off])
|
||||
linear_extrude(pentagon_h, scale = 0.01)
|
||||
translate([0, 0, -pentagon_h - h_off])
|
||||
linear_extrude(pentagon_h, scale = 0.001)
|
||||
rotate(-36)
|
||||
circle(pentagon_r, $fn = 5);
|
||||
}
|
||||
@@ -19,8 +21,10 @@ module soccer_polyhedron(circumradius, r_offset = 0) {
|
||||
hexagon_r = 2;
|
||||
hexagon_h = 4.534568;
|
||||
|
||||
h_off = s * 2.618034;
|
||||
|
||||
color("white")
|
||||
translate([0, 0, -hexagon_h - r_off])
|
||||
translate([0, 0, -hexagon_h - h_off])
|
||||
linear_extrude(hexagon_h, scale = 0.001)
|
||||
rotate(-30)
|
||||
circle(hexagon_r, $fn = 6);
|
||||
@@ -53,6 +57,6 @@ module soccer_polyhedron(circumradius, r_offset = 0) {
|
||||
}
|
||||
}
|
||||
|
||||
soccer_polyhedron(10);
|
||||
soccer_polyhedron(10, 0);
|
||||
%sphere(10, $fn = 48);
|
||||
|
Reference in New Issue
Block a user