XKTMesh
Represents the usage of a XKTGeometry by an XKTEntity.
- Created by XKTModel#createEntity
- Stored in XKTEntity#meshes and XKTModel#meshesList
- Specifies color and opacity
Member Summary
| Public Members | ||
| public |
RGB color of this XKTMesh. |
|
| public |
The owner XKTEntity. |
|
| public |
The instanced XKTGeometry. |
|
| public |
The 4x4 modeling transform matrix. |
|
| public |
Unique ID of this XKTMesh in XKTModel#meshes. |
|
| public |
Index of this XKTMesh in XKTModel#meshesList; |
|
| public |
PBR metallness of this XKTMesh. |
|
| public |
Opacity of this XKTMesh. |
|
| public |
PBR roughness of this XKTMesh. |
|
Public Members
public matrix: Number[] source
The 4x4 modeling transform matrix.
Transform is relative to the center of the XKTTile that contains this XKTMesh's XKTEntity, which is given in XKTMesh#entity.
When the XKTEntity shares its XKTGeometrys with other XKTEntitys, this matrix is used
to transform this XKTMesh's XKTGeometry into World-space. When this XKTMesh does not share its XKTGeometry,
then this matrix is ignored.
Reference
Source
