Configuration for the plane geometry.
Optionalcenter?: Vec3The 3D point indicating the center of the plane.
OptionalxSegments?: numberThe number of segments along the X-axis. Default is 1.
OptionalxSize?: numberThe width of the plane along the X-axis. Default is 1.
OptionalzSegments?: numberThe number of segments along the Z-axis. Default is 1.
OptionalzSize?: numberThe depth of the plane along the Z-axis. Default is 1.
The geometry arrays for the plane, including positions, normals, UVs, and indices, or an error message.
Creates a plane-shaped geometry.
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