Create box CPU data. A number sets a uniform size; structured options can set
independent dimensions, with size as the fallback for unspecified axes.
Always returns freshly-allocated typed arrays (never the shared module-level
constants), matching the other primitive data factories (createSphereData,
createCylinderData, …). This keeps the public API safe: callers may freely
mutate the returned buffers without corrupting subsequent calls.
Create box CPU data. A number sets a uniform size; structured options can set independent dimensions, with
sizeas the fallback for unspecified axes.Always returns freshly-allocated typed arrays (never the shared module-level constants), matching the other primitive data factories (createSphereData, createCylinderData, …). This keeps the public API safe: callers may freely mutate the returned buffers without corrupting subsequent calls.