AutoMovie API
    Preparing search index...

    Interface IAutoMovieDrawingDesignIndex

    One built environment indexed for a single drawing, schedule or feature derivation.

    Produced by indexAutoMovieDrawingDesign and owned by the derivation that built it. The index reads the environment as it was when indexed, so a caller that edits the environment builds a new one rather than reusing it.

    interface IAutoMovieDrawingDesignIndex {
        boundaries: ReadonlyMap<string, IAutoMovieBuiltBoundary>;
        elements: ReadonlyMap<string, IAutoMovieBuiltElement>;
        matrices: ReadonlyMap<string, number[]>;
        models: ReadonlyMap<string, IAutoMovieModel>;
        partTriangles: (
            model: IAutoMovieModel,
            part: IAutoMovieModelPart,
        ) => readonly IAutoMovieDrawingTriangle[];
    }
    Index
    boundaries: ReadonlyMap<string, IAutoMovieBuiltBoundary>

    Every boundary by id.

    elements: ReadonlyMap<string, IAutoMovieBuiltElement>

    Every element by id.

    matrices: ReadonlyMap<string, number[]>

    Column-major world matrix of every element, keyed by element id.

    Each element stands in its current operating state, the staging lowerBuiltEnvironment gives the scene, so a drawn line and the set piece it depicts stand in the same place.

    models: ReadonlyMap<string, IAutoMovieModel>

    Every environment-owned model by id.

    A builder-owned runtime model is absent, which is how a derivation tells an element whose geometry the design does not carry.

    partTriangles: (
        model: IAutoMovieModel,
        part: IAutoMovieModelPart,
    ) => readonly IAutoMovieDrawingTriangle[]

    Triangles of one model part in model-frame metres.

    Memoized per part object for the index's lifetime, so a model placed many times is tessellated once. Throws as autoMovieDrawingPartTriangles does for a malformed mesh. The returned array is shared between calls and must not be mutated.