INNER CODE UNIT · Python

edge_length_min

TheOpenSpaceProgram/osp-magnum · scripts/icosahedron_tables.py:129

edge_length_min = [2.0*sin(0.5*acot(0.5) * 0.5**x) for x in range(0, 24)]

print("inline constexpr std::array<float, 24> const gc_icoMinEdgeVsSubdiv\n"
      + "{\n"
      + "    " + ", ".join(nstr_float(edge_length) for edge_length in edge_length_min) + "\n"
      + "};\n")


edge_length_max = []

# Any initial triangle from the icosahedron works here
tri = (
    ( 0.0,    0.0,    1.0),
    ( cmr,    0.0,    hei),
    ( cxa,   -sya,    hei)
)

for _ in range(0, 24):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…