Function CreatePlane
-
CreatePlane(
name: string,
options?: {
backUVs?: Vector4;
frontUVs?: Vector4;
height?: number;
sideOrientation?: number;
size?: number;
sourcePlane?: Plane;
updatable?: boolean;
width?: number;
},
scene?: Nullable<Scene>,
): MeshParameters
- name: string
defines the name of the mesh
- options: {
backUVs?: Vector4;
frontUVs?: Vector4;
height?: number;
sideOrientation?: number;
size?: number;
sourcePlane?: Plane;
updatable?: boolean;
width?: number;
} = {}defines the options used to create the mesh
- scene: Nullable<Scene> = null
defines the hosting scene
Returns Mesh
the plane mesh
- name: string
Creates a plane mesh
sizesets the size (float) of both sides of the plane at once (default 1)widthandheight(both by default have the same value ofsize)sourcePlaneis a Plane instance. It builds a mesh plane from a Math planefrontUVsandbackUVs(Vector4). Detail here : https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set#side-orientationupdatable(default false) if its internal geometry is supposed to change once created