
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
Overrides
Properties
blendIndices
blendIndices: undefined | number[];
Blend indices.
Inherited from
blendWeights
blendWeights: undefined | number[];
Blend weights.
Inherited from
colors
colors: undefined | number[];
Colors.
Inherited from
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