Mirror Engine
V5
How To
Mirror Engine Logo

Mirror Engine API


Mirror Engine API / DomeGeometry

Class: DomeGeometry

A procedural dome-shaped geometry.

The size and tesselation properties of the dome can be controlled via constructor parameters. Radius is fixed to 0.5.

Note that the dome is created with UVs in the range of 0 to 1.

Extends

Constructors

new DomeGeometry()

new DomeGeometry(opts?: {
  latitudeBands: number;
  longitudeBands: number;
 }): DomeGeometry

Create a new CylinderGeometry instance.

Parameters

opts?

An object that specifies optional inputs for the function as follows:

latitudeBands?

number

The number of divisions along the latitudinal axis of the sphere (defaults to 16).

longitudeBands?

number

The number of divisions along the longitudinal axis of the sphere (defaults to 16).

Returns

DomeGeometry

Overrides

SphereGeometry.constructor

Properties

blendIndices

blendIndices: undefined | number[];

Blend indices.

Inherited from

SphereGeometry.blendIndices


blendWeights

blendWeights: undefined | number[];

Blend weights.

Inherited from

SphereGeometry.blendWeights


colors

colors: undefined | number[];

Colors.

Inherited from

SphereGeometry.colors

Methods

calculateNormals()

calculateNormals(): void

Generates normal information from the positions and triangle indices.

Returns

void

Inherited from

SphereGeometry.calculateNormals


calculateTangents()

calculateTangents(): void

Generates tangent information from the positions, normals, texture coordinates and triangle indices.

Returns

void

Inherited from

SphereGeometry.calculateTangents

Mirror Engine Logo