Reference Source
public class | source

XKTEntity

An object within an XKTModel.

Member Summary

Public Members
public

World-space axis-aligned bounding box (AABB) that encloses the XKTGeometry#positions of the XKTGeometrys that are used by this XKTEntity.

public

Unique ID of this XKTEntity in XKTModel#entities.

public

Index of this XKTEntity in XKTModel#entitiesList.

public

Indicates if this XKTEntity shares XKTGeometrys with other XKTEntity's.

Set by XKTModel#finalize.

Note that when an XKTEntity shares XKTGeometrys, it shares all of its XKTGeometrys. An XKTEntity never shares only some of its XKTGeometrys - it always shares either the whole set or none at all.

public

A list of XKTMeshs that indicate which XKTGeometrys are used by this Entity.

Public Members

public aabb: Float32Array source

World-space axis-aligned bounding box (AABB) that encloses the XKTGeometry#positions of the XKTGeometrys that are used by this XKTEntity.

Set by XKTModel#finalize.

public entityId: String source

Unique ID of this XKTEntity in XKTModel#entities.

For a BIM model, this will be an IFC product ID.

We can also use XKTModel#createMetaObject to create an XKTMetaObject to specify metadata for this XKTEntity. To associate the XKTMetaObject with our XKTEntity, we give XKTMetaObject#metaObjectId the same value as XKTEntity#entityId.

public entityIndex: Number source

Index of this XKTEntity in XKTModel#entitiesList.

Set by XKTModel#finalize.

public hasReusedGeometries: Boolean source

Indicates if this XKTEntity shares XKTGeometrys with other XKTEntity's.

Set by XKTModel#finalize.

Note that when an XKTEntity shares XKTGeometrys, it shares all of its XKTGeometrys. An XKTEntity never shares only some of its XKTGeometrys - it always shares either the whole set or none at all.

public meshes: XKTMesh[] source

A list of XKTMeshs that indicate which XKTGeometrys are used by this Entity.