Capítulo 327 de 859

Chapter 327: PolarGridHelper

Core Idea

This helper is an object to define polar grids. Grids are two-dimensional arrays of lines.

Code Examples

const radius = 10;
const sectors = 16;
const rings = 8;
const divisions = 64;
const helper = new THREE.PolarGridHelper( radius, sectors, rings, divisions );
scene.add( helper );
  • What it demonstrates: Typical usage of PolarGridHelper.

Reference Tables

Constructor

Signature
`new PolarGridHelper( radius : number, sectors : number, rings : number, divisions : number, color1 : number

Methods

MethodDescription
.dispose()Frees the GPU-related resources allocated by this instance. Call this method whenever this instance is no longer used in your app.

Key Takeaways

  1. PolarGridHelper extends: EventDispatcher → Object3D → Line → LineSegments
  2. Key methods: dispose.

Connects To