How To

Mirror Engine API / Geometry
Class: Geometry
The Geometry class serves as a container for storing geometric information. It encapsulates data such as positions, normals, colors, and indices.
Extended by
Properties
blendIndices
blendIndices: undefined | number[];
Blend indices.
blendWeights
blendWeights: undefined | number[];
Blend weights.
colors
colors: undefined | number[];
Colors.
indices
indices: undefined | number[];
Indices.
normals
normals: undefined | number[];
Normals.
positions
positions: undefined | number[];
Positions.
tangents
tangents: undefined | number[];
Tangents.
uvs
uvs: undefined | number[];
UVs.
uvs1
uvs1: undefined | number[];
Additional Uvs.
Methods
calculateNormals()
calculateNormals(): void
Generates normal information from the positions and triangle indices.
Returns
void
calculateTangents()
calculateTangents(): void
Generates tangent information from the positions, normals, texture coordinates and triangle indices.
Returns
void