Tetrahedron
Live Editor
function Canvas() { const geo = tetrahedron({ radius: 0.5 }) const mat = rotate3dX(iDrag.y).mul(rotate3dY(iDrag.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} /> }
Result
Loading...
Tetrahedron Props
| radius | The tetrahedron radius. Default is 1. |
|---|
Tetrahedral Symmetry Structure
The tetrahedron represents the simplest three-dimensional polyhedron with triangular faces. Each vertex connects to exactly three other vertices, forming four equilateral triangular faces. The tetrahedral angle between faces equals , creating fundamental geometric relationships in crystal structures.
The face normals point outward from each triangular surface, maintaining unit length through normalization. Face orientation follows right-hand rule with vertices ordered counterclockwise when viewed from outside.
Edge Length Computation
The edge length of a tetrahedron with radius follows the relationship where all edges maintain equal length. The distance between any two vertices creates uniform edge lengths throughout the structure.