Inheritance: InstancedBufferGeometry → LineSegmentsGeometry →
A special type of line segments geometry intended for wireframe rendering.
This is used in Wireframe to describe the shape.
const geometry = new THREE.IcosahedronGeometry();
const wireframeGeometry = new WireframeGeometry2( geo );
WireframeGeometry2 is an addon, and must be imported explicitly, see Installation#Addons.
import { WireframeGeometry2 } from 'three/addons/lines/WireframeGeometry2.js';
Constructs a new wireframe geometry.
geometry
The geometry to render the wireframe for.
This flag can be used for type testing.
Default is true.