Reference Source
public class | source

XKTMesh

Represents the usage of a XKTGeometry by an XKTEntity.

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

The XKTTextureSet that defines the appearance of this XKTMesh.

Public Members

public color: Float32Array source

RGB color of this XKTMesh.

public entity: XKTEntity source

The owner XKTEntity.

Set by XKTModel#createEntity.

public geometry: XKTGeometry source

The instanced XKTGeometry.

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.

public meshId: Number source

Unique ID of this XKTMesh in XKTModel#meshes.

public meshIndex: Number source

Index of this XKTMesh in XKTModel#meshesList;

public metallic: Number source

PBR metallness of this XKTMesh.

public opacity: Number source

Opacity of this XKTMesh.

public roughness: XKTTextureSet source

PBR roughness of this XKTMesh. The XKTTextureSet that defines the appearance of this XKTMesh.

public textureSet: XKTTextureSet source

The XKTTextureSet that defines the appearance of this XKTMesh.