AutoMovie API
    Preparing search index...

    Variable builtEnvironmentElementPartBoundsConst

    builtEnvironmentElementPartBounds: (
        environment: IAutoMovieBuiltEnvironment,
        elementId: string,
    ) => IAutoMovieSubjectBox[] | null = ...

    The world boxes one element's drawn parts fill, one per part.

    Answers the question builtEnvironmentElementBounds cannot: how much of a body's box is body. A shelf is a back panel and two boards, so its union box spans floor to head height and is mostly air, and anything standing on a board is inside it. A caller testing whether two placed things intersect, or which face one rests on, reads these boxes rather than the union. Every part box lies inside the union, so a part test can only withdraw a contact the union invented, and a single-part body yields exactly its union box.

    null for an element that was never declared and for a transform-only element, which draws nothing. Boxes are world-space, one per part with at least one vertex in the model's part order, measured where the environment's current operating state puts the element. An element whose model the record does not hold, or whose parts draw no vertex, gets one degenerate box at its world origin.

    Each call stages the whole element hierarchy, so a caller measuring many elements of one environment reads builtEnvironmentPartBoxes once instead.

    These are CPU boxes of finite stated or tessellated vertices under element-world and part-local TRS. Attached-bone transforms, skinning, animation, loaded external geometry and GPU Float32 evaluation are outside this measurement; enclosure of a rendered frame requires those extra effects to be absent or separately bounded.

    Type Declaration