WireframeGeometry
This can be used as a helper object to view a geometry as a wireframe.
Code Example
const geometry = new THREE.SphereGeometry( 100, 100, 100 ); const wireframe =
new THREE.WireframeGeometry( geometry ); const line = new THREE.LineSegments(
wireframe ); line.material.depthTest = false; line.material.opacity = 0.25;
line.material.transparent = true; scene.add( line );
Examples
[example:webgl_helpers helpers]
Constructor
WireframeGeometry
function WireframeGeometry( geometry: BufferGeometry ): void;
geometry — any geometry object.
Properties
See the base BufferGeometry class for common properties.
Methods
See the base BufferGeometry class for common methods.