Skip to main content
2 of 3
deleted 107 characters in body
Neil
  • 177.2k
  • 12
  • 74
  • 281

Charcoal, 162 146 bytes

Nθ⊞υ⟦⁰¦¹⊘⊕₂⁵⟧≔⟦⟧ηFυFE²⊞OΦιν×⊖⊗κ§ι⁰F¬№υκFΦ⊞Oυκ⁼⁴ΣXEμ⁻ξ§κπ²⊞η⟦κμ⟧FηF…¹θ⊞υE§ι⁰⁺×κλ×⁻θꧧι¹μFηFΦυ⬤ι№η⟦μκ⟧F…²θF…¹λ⊞υE§ι⁰⁺⁺×μν×⁻λ짧ι¹ξ×⁻θλ§κξIEυ∕ι₂ΣXι²

Try it online! Link is to verbose version of code. Explanation:

Nθ

Input b.

Nθ⊞υ⟦⁰¦¹⊘⊕₂⁵⟧≔⟦⟧ηFυFE²⊞OΦιν×⊖⊗κ§ι⁰F¬№υκFΦ⊞Oυκ⁼⁴ΣXEμ⁻ξ§κπ²⊞η⟦κμ⟧

Generate the vertices and edges of a regular icosahedron of side 2.

FηF…¹θ⊞υE§ι⁰⁺×κλ×⁻θꧧι¹μ

Extrapolate the points along the edges.

FηFΦυ⬤ι№η⟦μκ⟧F…²θF…¹λ⊞υE§ι⁰⁺⁺×μν×⁻λ짧ι¹ξ×⁻θλ§κξ

Extrapolate the points inside the faces. (Due to the normalisation, it's not necessary to interpolate.)

IEυ∕ι₂ΣXι²

Normalise all the points.

Neil
  • 177.2k
  • 12
  • 74
  • 281