- The options object takes the following properties
- {Cartesian3} options.minimum The minimum x, y, and z coordinates of the box.
- {Cartesian3} options.maximum The maximum x, y, and z coordinates of the box.
- {VertexFormat} [options.vertexFormat=VertexFormat.DEFAULT] The vertex attributes to be computed.
var box = new Cesium.BoxGeometry({
vertexFormat : Cesium.VertexFormat.POSITION_ONLY,
maximum : new Cesium.Cartesian3(250000.0, 250000.0, 250000.0),
minimum : new Cesium.Cartesian3(-250000.0, -250000.0, -250000.0)
});
var geometry = Cesium.BoxGeometry.createGeometry(box);
Describes a cube centered at the origin.
alias BoxGeometry
- The options object takes the following properties - {Cartesian3} options.minimum The minimum x, y, and z coordinates of the box. - {Cartesian3} options.maximum The maximum x, y, and z coordinates of the box. - {VertexFormat} [options.vertexFormat=VertexFormat.DEFAULT] The vertex attributes to be computed.
var box = new Cesium.BoxGeometry({ vertexFormat : Cesium.VertexFormat.POSITION_ONLY, maximum : new Cesium.Cartesian3(250000.0, 250000.0, 250000.0), minimum : new Cesium.Cartesian3(-250000.0, -250000.0, -250000.0) }); var geometry = Cesium.BoxGeometry.createGeometry(box);
Packable demo Sandcastle Box Demo
BoxGeometry.createGeometry
BoxGeometry.fromDimensions