API

Variable LatheBuilderConst

LatheBuilder: {
    CreateLathe: (
        name: string,
        options: {
            arc?: number;
            backUVs?: Vector4;
            cap?: number;
            clip?: number;
            closed?: boolean;
            frontUVs?: Vector4;
            invertUV?: boolean;
            radius?: number;
            shape: Vector3[];
            sideOrientation?: number;
            tessellation?: number;
            updatable?: boolean;
        },
        scene?: Nullable<Scene>,
    ) => Mesh;
} = ...

Class containing static functions to help procedurally build meshes

Type Declaration

  • CreateLathe: (
        name: string,
        options: {
            arc?: number;
            backUVs?: Vector4;
            cap?: number;
            clip?: number;
            closed?: boolean;
            frontUVs?: Vector4;
            invertUV?: boolean;
            radius?: number;
            shape: Vector3[];
            sideOrientation?: number;
            tessellation?: number;
            updatable?: boolean;
        },
        scene?: Nullable<Scene>,
    ) => Mesh

use the function direction from the module