fromDimensions

Creates a cube centered at the origin given its dimensions.

const box = BoxGeometry.fromDimensions({
vertexFormat : VertexFormat.POSITION_ONLY,
dimensions : new Cartesian3(500000.0, 500000.0, 500000.0)
});
const geometry = BoxGeometry.createGeometry(box);

See also