Geometry3D

new SuperMap3D.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. This class can be used to control the pose of the 3D geometric object, including the position, rotation angle, and scaling of the object.
Name Type Description
options Object optional The object contains the following properties:
Name Type Default Description
rotationX Number 0.0 optional The rotation angle of the 3D geometric object around the X axis. The coordinate system used is the right-handed 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 used is a right-handed coordinate system with the center of the sphere as the origin and north as the Y axis.
rotationZ Number 0.0 optional The rotation angle of the 3D geometric object along the Z axis. The coordinate system used is a right-handed coordinate system with the center of the sphere as the origin and north as the Y axis.
scaleX Number 1.0 optional The zoom ratio of the 3D geometric object along the X axis. The coordinate system used is a right-handed coordinate system with the center of the sphere as the origin and north as the Y axis.
scaleY Number 1.0 optional The zoom ratio of the 3D geometry object along the Y axis. The coordinate system used is a right-handed coordinate system with the center of the sphere as the origin and north as the Y axis.
scaleZ Number 1.0 optional The zoom ratio of the 3D geometric object along the Z axis. The coordinate system used is a right-handed coordinate system with the center of the sphere as the origin and north as the Y axis.
position Object {x : 0, y : 0, z : 0} optional The position of the 3D geometry 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 bottom center point is used to control the position of the 3D geometric object on the earth.
id Number 0 optional Id of the 3D geometry object.
type String optional The type of 3D geometry object.

Members

geoId : Number

Get or set the Id of the 3D geometry object.
Default Value: 0

geoPosition : Point3D

Get or set the position of the 3D geometry object.
Default Value: {x : 0, y : 0, z : 0}

geoRotationX : Number

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

geoRotationY : Number

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

geoRotationZ : Number

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

geoScaleX : Number

Get or set the scaling ratio of the 3D geometry object along the X axis.
Default Value: 1.0

geoScaleY : Number

Get or set the scaling ratio of the 3D geometry object along the Y axis.
Default Value: 1.0

geoScaleZ : Number

Get or set the scaling ratio of the 3D geometric object along the Z axis.
Default Value: 1.0

geoType : String

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

isGeometryDirty : Boolean

Does the geometry need to be updated

isLatLon : Boolean

Whether the geometry insertion point is latitude and longitude

modelMatrix : Matirx4

matrix

Methods

getBounds()

Get the geographical range of the 3D geometric object, that is, the minimum circumscribed rectangle of the 3D geometric object, and the minimum circumscribed rectangle of a point is the point itself.