File: WireframeGeometry.md | Updated: 11/15/2025
Can be used as a helper object to visualize a geometry as a wireframe.
Note: It is not yet possible to serialize/deserialize instances of this class.
const geometry = new THREE.SphereGeometry();
const wireframe = new THREE.WireframeGeometry( geometry );
const line = new THREE.LineSegments( wireframe );
line.material.depthWrite = false;
line.material.opacity = 0.25;
line.material.transparent = true;
scene.add( line );
Constructs a new wireframe geometry.
geometry | The geometry. Default is null.
---|---
Holds the constructor parameters that have been used to generate the geometry. Any modification after instantiation does not change the geometry.