AutoMovie API
    Preparing search index...

    Interface IAutoMovieSurfaceLayout

    The faces, UVs, corner coordinates and patch grids of a surface rig's cage as its patches are laid out, from layoutAutoMovieSurfacePatches.

    interface IAutoMovieSurfaceLayout {
        corners: [
            IAutoMovieSurfaceCoordinate,
            IAutoMovieSurfaceCoordinate,
            IAutoMovieSurfaceCoordinate,
            IAutoMovieSurfaceCoordinate,
        ][];
        faces: number[][];
        grids: IAutoMovieSurfaceCage.IPatch[];
        uvFaces: number[][];
        uvs: number[];
        check(): void;
        emit(
            patch: number,
            grid: number[][],
            columns: number,
            rows: number,
            wrap: boolean,
        ): void;
        emitFaces(
            patch: number,
            quads: [number, number, number][][],
            columns: number,
            rows: number,
        ): void;
    }
    Index

    Surface coordinate of each face corner.

    faces: number[][]

    Quads as four vertex indices, counterclockwise seen from outside.

    Each patch's grid, by patch index.

    uvFaces: number[][]

    UV indices per face corner.

    uvs: number[]

    Packed UV values.

    • Lay out one patch's grid of faces.

      Parameters

      • patch: number

        Index of the patch in the network

      • grid: number[][]

        Vertex indices by row from t 0 and column from s 0

      • columns: number

        Faces along s

      • rows: number

        Faces along t

      • wrap: boolean

        Whether column columns is column 0, for a patch closing on itself

      Returns void

    • Lay out a patch whose faces are not a grid, each corner with its own patch coordinates.

      Parameters

      • patch: number

        Index of the patch in the network

      • quads: [number, number, number][][]

        Each face's four corners counterclockwise: vertex index and patch coordinates

      • columns: number

        The count the patch's record reports along s

      • rows: number

        The count the patch's record reports along t

      Returns void