1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-09-01 02:33:00 +02:00

pre_calculate

This commit is contained in:
Justin Lin
2019-12-07 19:46:32 +08:00
parent 74c425bb84
commit e69ab760de

View File

@@ -10,8 +10,9 @@ module soccer_polyhedron(circumradius, spacing, jigsaw_base = false) {
pentagon_h = 4.654877; pentagon_h = 4.654877;
convex_r = pentagon_r / 5 - s / 2; convex_r = pentagon_r / 5 - s / 2;
r_off = s / sin(atan(pentagon_h / pentagon_r)) / cos(36);
h_off = s / cos(atan(pentagon_h / pentagon_r)); r_off = s / 0.759856;
h_off = s / 0.343279;
color("black") color("black")
translate([0, 0, -pentagon_h]) translate([0, 0, -pentagon_h])
@@ -34,8 +35,8 @@ module soccer_polyhedron(circumradius, spacing, jigsaw_base = false) {
pentagon_r = 1.701302; pentagon_r = 1.701302;
concave_r = pentagon_r / 5 + s / 2; concave_r = pentagon_r / 5 + s / 2;
r_off = s / sin(atan(hexagon_h / hexagon_r)) / cos(30); r_off = s / 0.792377;
h_off = s / cos(atan(hexagon_h / hexagon_r)); h_off = s / 0.403548;
color("white") color("white")
translate([0, 0, -hexagon_h]) translate([0, 0, -hexagon_h])