AutoMovie API
    Preparing search index...

    Interface IAutoMoviePatternCandidate

    One module a zone's own program proposes, before any clipping.

    generateAutoMovieSurfacePattern forms the module's four corners by turning ±size / 2 by rotationDeg about center, and throws on the first candidate whose id is blank or repeated in its zone, whose centre, rotation or grain is not finite, whose size is not above zero, or whose corners reach further than the zone's reach from the cell origin.

    interface IAutoMoviePatternCandidate {
        center: IAutoMoviePatternPoint;
        grainDeg: number;
        id: string;
        mirror: boolean;
        rotationDeg: number;
        size: { u: number; v: number };
    }
    Index

    Module centre in face-local metres.

    grainDeg: number

    Material grain direction in degrees; read modulo 180.

    id: string

    Stable module identity, unique inside its zone.

    mirror: boolean

    Whether the piece is laid face-flipped, its own U axis reversed.

    This is what book-matching is: two slabs cut from one block and opened like a page, so the second shows the first's image reversed. A rectangle is unchanged by that flip, so the piece keeps the same footprint and the same instance slot; what reverses is the material across it, which is why the flip only becomes visible through autoMoviePatternTextureTransforms.

    It is not the grain turned. grainDeg states the direction the grain runs on the surface either way, so a mirrored pair whose grain runs one way is continuous grain and is not reported as a break.

    rotationDeg: number

    In-plane module rotation in degrees, counter-clockwise about the normal.

    size: { u: number; v: number }

    Module footprint in metres; the joint is the gap the author leaves.

    Type Declaration

    • u: number

      Module extent along its own U axis before rotation, in metres; it need not be the longer side.

    • v: number

      Module extent along its own V axis before rotation, in metres.