Configurations for the box geometry.
Optional
center?: number[]The center of the box in 3D space, default is the origin [0, 0, 0]
.
Optional
xSize?: numberHalf-size of the box along the X-axis. The default value is 1.0
.
Optional
ySize?: numberHalf-size of the box along the Y-axis. The default value is 1.0
.
Optional
zSize?: numberHalf-size of the box along the Z-axis. The default value is 1.0
.
Returns the geometry arrays for the box or an SDKError if the input sizes are invalid.
Creates box-shaped geometry arrays.
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