メインコンテンツまでスキップ

Dodecahedron

ライブエディター

function Canvas() {
const geo = dodecahedron({ radius: 0.5 })
const mat = rotate3dX(iMouse.y.negate()).mul(rotate3dY(iMouse.x))
const gl = useGL({
	isWebGL: true,
	isDepth: true,
	count: geo.count,
	vertex: vec4(mat.mul(geo.vertex), 1),
	fragment: vec4(varying(geo.normal), 1),
})
return <canvas ref={gl.ref} />
}
結果
Loading...

Dodecahedron Props

radiusThe dodecahedron radius.
Default is 1.
detailSubdivision level for additional vertices.
Higher values increase complexity.
Default is 0.
needNormalCalculate surface normals for lighting.
Default is true.
needIndiceGenerate triangle indices array.
Default is false.

Mathematical Foundation

The dodecahedron employs the golden ratio ϕ=1+521.618\phi = \frac{1 + \sqrt{5}}{2} \approx 1.618 in its construction. This creates twelve regular pentagonal faces arranged in perfect symmetry.

Let r=1ϕr = \frac{1}{\phi} represent the reciprocal golden ratio. The twenty vertices distribute across three coordinate planes:

Cubic vertices:(±1,±1,±1)Rectangle YZ:(0,±r,±ϕ)Rectangle XZ:(±r,±ϕ,0)Rectangle XY:(±ϕ,0,±r)\begin{aligned} \text{Cubic vertices} &: (\pm 1, \pm 1, \pm 1) \\ \text{Rectangle YZ} &: (0, \pm r, \pm \phi) \\ \text{Rectangle XZ} &: (\pm r, \pm \phi, 0) \\ \text{Rectangle XY} &: (\pm \phi, 0, \pm r) \end{aligned}

Pentagonal Face Structure

Each pentagonal face connects five vertices through specific angular relationships. The dihedral angle between adjacent faces measures arccos(53)116.57°\arccos(-\frac{\sqrt{5}}{3}) \approx 116.57°.

The face arrangement follows icosahedral symmetry, creating exactly twelve regular pentagons. Each vertex participates in three faces, forming the characteristic three-dimensional structure.

Golden Ratio Properties

The dodecahedron demonstrates golden ratio relationships throughout its geometry. Edge lengths, face diagonals, and vertex distances all involve powers of ϕ\phi.

The circumscribed sphere radius equals 3(1+5)2\frac{\sqrt{3}(1 + \sqrt{5})}{2} times the edge length. The inscribed sphere touches each face at its center, with radius 250+110520\frac{\sqrt{250 + 110\sqrt{5}}}{20} times edge length.

Dual Polyhedron Relationship

The dodecahedron forms a dual relationship with the icosahedron. Each dodecahedron face corresponds to an icosahedron vertex, while each dodecahedron vertex corresponds to an icosahedron face.

This duality creates complementary structures where one polyhedron fits inside the other with perfect geometric correspondence. The transformation involves reciprocal golden ratio scaling and coordinate inversion.