IFClite TypeScript API
    Preparing search index...

    Interface SiteContextFeature

    interface SiteContextFeature {
        attributes: { [key: string]: JsonValue };
        id: string;
        ifcType: string;
        mesh: SiteContextMesh | null;
        name: string;
        origin: [number, number, number];
        provenance: { [key: string]: JsonValue };
        subject?: true;
    }
    Index
    attributes: { [key: string]: JsonValue }
    id: string

    Stable within a document, e.g. terrain:chunk:r0c1, parcel:CH1234….

    ifcType: string

    The IFC entity a writer should emit for it (IfcGeographicElement, IfcSite).

    mesh: SiteContextMesh | null

    null when the feature carries data but no geometry could be built honestly (see the layer's issues).

    name: string
    origin: [number, number, number]

    Feature origin [E, N, H] in EPSG:2056 / EPSG:5728, f64.

    provenance: { [key: string]: JsonValue }
    subject?: true

    true on the neighbouring building that is the model's own building (see BuildSiteContextOptions.subject). It is kept in the document; a viewer decides whether to hide it. Absent on every other feature.