Geometry3D

new Cesium.Geometry3D(options)

Abstract class of 3D geometric objects. It is the base class of the 3D geometry class and provides the properties and methods of the basic 3D geometry class. Through this class, the posture of 3D geometric objects can be controlled, including the position, rotation angle, and zoom ratio of the object.
Name Type Description
options Object optional The object contains the following attributes:
Name Type Default Description
rotationX Number 0.0 optional The rotation angle of the 3D geometric object around the X axis. The coordinate system adopted is the right-hand coordinate system with the center of the sphere as the origin and the north direction as the Y axis.
rotationY Number 0.0 optional The rotation angle of the 3D geometric object along the Y axis. The coordinate system adopted takes the center of the sphere as the origin and the north direction is the right-hand coordinate system of the Y axis.
rotationZ Number 0.0 optional The rotation angle of the 3D geometric object along the Z axis. The coordinate system adopted takes the center of the sphere as the origin and the north direction is the right-hand coordinate system of the Y axis.
scaleX Number 1.0 optional The zoom ratio of the 3D geometric object along the X axis. The coordinate system adopted takes the center of the sphere as the origin and the north direction is the right-hand coordinate system of the Y axis.
scaleY Number 1.0 optional The zoom ratio of the 3D geometric object along the Y axis. The coordinate system adopted takes the center of the sphere as the origin and the north direction is the right-hand coordinate system of the Y axis.
scaleZ Number 1.0 optional The zoom ratio of the 3D geometric object along the Z axis. The coordinate system adopted takes the center of the sphere as the origin and the north direction is the right-hand coordinate system of the Y axis.
position Object {x : 0, y : 0, z : 0} optional The position of the 3D geometric object. The coordinate value of this position is the three-dimensional coordinate value of the center point of the bottom surface of the cuboid circumscribed by the three-dimensional geometric object. The center point of the bottom surface is used to control the placement of the three-dimensional geometric object on the earth.
id Number 0 optional The Id of the 3D geometric object.
type String optional The type of 3D geometric object.

Members

geoId : Number

Gets or sets the Id of the 3D geometric object.
Default Value: 0

geoPosition : Point3D

Gets or sets the position of the 3D geometric object.
Default Value: {x : 0, y : 0, z : 0}

geoRotationX : Number

Gets or sets the rotation angle of the 3D geometric object around the X axis, unit: degree.
Default Value: 0.0

geoRotationY : Number

Gets or sets the rotation angle of the 3D geometric object around the Y axis, unit: degree.
Default Value: 0.0

geoRotationZ : Number

Gets or sets the rotation angle of the 3D geometric object around the Z axis, unit: degree.
Default Value: 0.0

geoScaleX : Number

Gets or sets the zoom ratio of the 3D geometric object along the X axis.
Default Value: 1.0

geoScaleY : Number

Gets or sets the zoom ratio of the 3D geometric object along the Y axis.
Default Value: 1.0

geoScaleZ : Number

Gets or sets the zoom ratio of the 3D geometric object along the Z axis.
Default Value: 1.0

geoType : String

Get the type of 3D geometric object.
Default Value: 0

Methods

getBounds()

Get the geographic range of the 3D geometric object, that is, the minimum enclosing rectangle of the 3D geometric object. The minimum enclosing rectangle of the point is the point itself.