IFClite TypeScript API
    Preparing search index...

    Interface SiteContextMesh

    A triangle mesh in a feature's local frame (x east, y north, z up, metres from the feature origin). normals has one unit vector per vertex; uvs one pair per vertex when present.

    interface SiteContextMesh {
        indices: Uint32Array;
        normals: Float32Array;
        parts?: SiteContextMeshPart[];
        positions: Float32Array;
        uvs?: Float32Array<ArrayBufferLike>;
    }
    Index
    indices: Uint32Array
    normals: Float32Array

    Named triangle ranges a consumer may style differently, e.g. a neighbouring building's roof and wall. Ranges are contiguous, in order, and together cover indices exactly. Absent: one undivided mesh.

    positions: Float32Array
    uvs?: Float32Array<ArrayBufferLike>