📄 threejs/Core/Geometries/TetrahedronGeometry

File: TetrahedronGeometry.md | Updated: 11/15/2025


title: TetrahedronGeometry category: Core layout: docs

TetrahedronGeometry

A geometry class for representing an tetrahedron.

Code Example

const geometry = new THREE.TetrahedronGeometry();
const material = new THREE.MeshBasicMaterial( { color: 0xffff00 } );
const tetrahedron = new THREE.Mesh( geometry, material );
scene.add( tetrahedron );

Constructor

new TetrahedronGeometry( radius : number, detail : number )

Constructs a new tetrahedron geometry.

radius | Radius of the tetrahedron. Default is 1.
---|---
detail | Setting this to a value greater than 0 adds vertices making it no longer a tetrahedron. Default is 0.

Properties

.parameters : Object

Holds the constructor parameters that have been used to generate the geometry. Any modification after instantiation does not change the geometry.

Overrides: PolyhedronGeometry#parameters

Static Methods

.fromJSON( data : Object ) : TetrahedronGeometry

Factory method for creating an instance of this class from the given JSON object.

data | A JSON object representing the serialized geometry.
---|---

Returns: A new instance.

Source

src/geometries/TetrahedronGeometry.js