GeoBox

new Cesium.GeoBox(length, width, height)

The 3D cuboid geometric object class. This class is used to draw cuboid geometric objects on the 3D layer.
Name Type Description
length Number The length of the cuboid, in meters.
width Number The width of the cuboid, in meters.
height Number The height of the cuboid, in meters.

Members

geoHeight : Number

Gets or sets the height of the cuboid, in meters.
Default Value: 0.0

geoLength : Number

Gets or sets the length of the cuboid, in meters.
Default Value: 0.0

geoWidth : Number

Gets or sets the width of the cuboid, in meters.
Default Value: 0.0

Methods

getCenter()Number

Get the center point of the cuboid geometric object.
Returns:
The geographic coordinate value of the center point of the cuboid geometric object.

isValid()Boolean

Get whether the cuboid geometric object is valid.
Returns:
It returns true if the cuboid geometric object is valid, otherwise it returns false.