Capítulo 625 de 859
A class for creating wireframes based on wide lines.
This module can only be used with WebGLRenderer. When using WebGPURenderer, import the class from lines/webgpu/Wireframe.js.
const geometry = new THREE.IcosahedronGeometry();
const wireframeGeometry = new WireframeGeometry2( geo );
const wireframe = new Wireframe( wireframeGeometry, material );
scene.add( wireframe );
Constructor
| Signature |
|---|
new Wireframe( geometry : LineSegmentsGeometry, material : LineMaterial ) |
Properties
| Property | Description |
|---|---|
.isWireframe : boolean (readonly) | This flag can be used for type testing. |
Methods
| Method | Description |
|---|---|
.computeLineDistances() : Wireframe | Computes an array of distance values which are necessary for rendering dashed lines. For each vertex in the geometry, the method calculates the cumulative length from the current point to the very be… |