Configurations for the box geometry.
Optionalcenter?: Vec3The center of the box in 3D space, default is the origin [0, 0, 0].
OptionalxSize?: numberHalf-size of the box along the X-axis. The default value is 1.0.
OptionalySize?: numberHalf-size of the box along the Y-axis. The default value is 1.0.
OptionalzSize?: numberHalf-size of the box along the Z-axis. The default value is 1.0.
The geometry arrays for a box, including positions, UVs, and indices, or an error message.
Creates box-shaped geometry.
This function generates the geometry arrays required for a box mesh with configurable sizes along each axis. It provides vertex positions, UV coordinates, and indices to define the box's geometry. You can adjust the box's size along the X, Y, and Z axes and also specify its center position in 3D space.
Usage