INNER CODE UNIT · Python

tower_heights

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

tower_heights = [sec(0.5*acot(0.5) * 0.5**x ) - 1 for x in range(0, 24)]

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

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…