Configuration for the plane geometry.
The 3D point indicating the center of the plane.
The number of segments along the X-axis. Default is 1
.
The width of the plane along the X-axis. Default is 1
.
The number of segments along the Z-axis. Default is 1
.
The depth of the plane along the Z-axis. Default is 1
.
The geometry arrays for the plane, including positions, normals, UVs, and indices.
Creates a plane-shaped SceneGeometry.
This function generates a plane geometry with configurable dimensions and segments. The plane is created by defining a grid of vertices with associated normals and UV coordinates, and creating the indices to connect them in a grid-like fashion. The plane is then returned as a geometry that can be used to create a mesh in the scene.
Usage
Creating a SceneMesh with a plane-shaped SceneGeometry: