Capítulo 626 de 859

Chapter 626: WireframeGeometry2

Core Idea

A special type of line segments geometry intended for wireframe rendering.

This is used in Wireframe to describe the shape.

Key Concepts

  • isWireframeGeometry2 : boolean (readonly): This flag can be used for type testing.

Code Examples

const geometry = new THREE.IcosahedronGeometry();
const wireframeGeometry = new WireframeGeometry2( geo );
  • What it demonstrates: Typical usage of WireframeGeometry2.

Reference Tables

Constructor

Signature
new WireframeGeometry2( geometry : BufferGeometry )

Properties

PropertyDescription
.isWireframeGeometry2 : boolean (readonly)This flag can be used for type testing.

Key Takeaways

  1. WireframeGeometry2 extends: InstancedBufferGeometry → LineSegmentsGeometry
  2. Most relevant properties: isWireframeGeometry2.

Connects To