IFClite TypeScript API
    Preparing search index...

    Interface DecodedInstance

    One occurrence of a decoded template.

    interface DecodedInstance {
        color: [number, number, number, number];
        entityId: number;
        itemId?: number;
        metallic?: number;
        roughness?: number;
        templateIndex: number;
        transform: Float32Array;
    }
    Index
    color: [number, number, number, number]

    RGBA in 0–1.

    entityId: number
    itemId?: number

    The IfcRepresentationItem this occurrence's geometry was tessellated from, so a host can drill from a rendered instanced piece back to the entity in the IFC source. Undefined when the shard's stride declares no trailing item-id field (a v1 shard, or a model whose producer named no item at all) and when this record's own id is the 0 sentinel.

    metallic?: number

    IFC-authored metallic / roughness (#5984), the same finish a flat mesh carries as MeshData.material. Undefined where unauthored and on a shard whose stride stops short of trailing field 2. 0 is a value.

    roughness?: number
    templateIndex: number
    transform: Float32Array

    Row-major mat4 mapping the template's world geometry onto this occurrence.