XKTEntity
An object within an XKTModel.
- Created by XKTModel#createEntity
- Stored in XKTModel#entities and XKTModel#entitiesList
- Has one or more XKTMeshs, each having an XKTGeometry
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 |
|
public |
Unique ID of this |
|
public |
Index of this |
|
public |
Indicates if this Set by XKTModel#finalize. Note that when an |
|
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.