AutoMovie API
    Preparing search index...

    Interface IAutoMovieWorldBlock

    One generated visible wall/building block and its support footprint.

    Built by worldBlock from a base point at the bottom centre and a positive size. The block is never rotated, so bounds is exact. assertWorldPlacements refuses two blocks whose bounds overlap with positive volume, a block whose footprint does not rest on a declared surface, and a route crossing a block.

    interface IAutoMovieWorldBlock {
        bounds: { max: IAutoMovieVector3; min: IAutoMovieVector3 };
        id: string;
        kind: "wall" | "building";
        model: IAutoMovieModel;
        node: IAutoMovieSceneNode;
    }
    Index
    bounds: { max: IAutoMovieVector3; min: IAutoMovieVector3 }

    Exact axis-aligned occupied world volume, in meters.

    Type Declaration

    • max: IAutoMovieVector3

      Highest corner: the base plus half the width and depth, plus the height.

    • min: IAutoMovieVector3

      Lowest corner: the base less half the width and depth, at base height.

    id: string

    Stable block identity, also used as the node id and, under the runtime model namespace, as the model id.

    kind: "wall" | "building"

    Block semantic; carried for the author and does not change the geometry.

    Skeletonless box model group to register with the scene: one centred box part of the block's width, height and depth in meters, wearing one opaque dielectric material named structure decoded from the sRGB color.

    Static scene node citing model.id, translated to the box centre with identity rotation and scale.