new Geometry3D()
Abstract class for 3D geometry objects. It is the base class for 3D geometry classes, providing basic properties and methods for 3D geometry. This class allows control over the pose of a 3D geometry object, including its position, rotation angles, and scale.
| Name | Type | Default | Description |
|---|---|---|---|
options.rotationX |
number | 0.0 |
optional
The rotation angle of the 3D geometry object around the X-axis, using a right-handed coordinate system with the origin at the sphere's center and the north direction as the Y-axis. |
options.rotationY |
number | 0.0 |
optional
The rotation angle of the 3D geometry object around the Y-axis, using a right-handed coordinate system with the origin at the sphere's center and the north direction as the Y-axis. |
options.rotationZ |
number | 0.0 |
optional
The rotation angle of the 3D geometry object around the Z-axis, using a right-handed coordinate system with the origin at the sphere's center and the north direction as the Y-axis. |
options.scaleX |
number | 1.0 |
optional
The scale of the 3D geometry object along the X-axis, using a right-handed coordinate system with the origin at the sphere's center and the north direction as the Y-axis. |
options.scaleY |
number | 1.0 |
optional
The scale of the 3D geometry object along the Y-axis, using a right-handed coordinate system with the origin at the sphere's center and the north direction as the Y-axis. |
options.scaleZ |
number | 1.0 |
optional
The scale of the 3D geometry object along the Z-axis, using a right-handed coordinate system with the origin at the sphere's center and the north direction as the Y-axis. |
options.position |
Object | {x: 0, y: 0, z: 0} |
optional
The position of the 3D geometry object. The coordinate value of this position is the 3D coordinate of the center point of the bottom face of the bounding box of the 3D geometry object. This bottom center point is used to control the placement of the 3D geometry object on the Earth. |
options.id |
number | 0 |
optional
The ID of the 3D geometry object. |
options.type |
String |
optional
The type of the 3D geometry object. |
Members
-
geoIdnumber
-
Gets or sets the ID of the 3D geometry object.
- Default Value: 0
geoPositionPoint3D
Gets or sets the position of the 3D geometry object.
- Default Value: {x: 0, y: 0, z: 0}
geoRotationXnumber
Gets or sets the rotation angle of the 3D geometry object around the X-axis, in degrees.
- Default Value: 0.0
geoRotationYnumber
Gets or sets the rotation angle of the 3D geometry object around the Y-axis, in degrees.
- Default Value: 0.0
geoRotationZnumber
Gets or sets the rotation angle of the 3D geometry object around the Z-axis, in degrees.
- Default Value: 0.0
geoScaleXnumber
Gets or sets the scale of the 3D geometry object along the X-axis.
- Default Value: 1.0
geoScaleYnumber
Gets or sets the scale of the 3D geometry object along the Y-axis.
- Default Value: 1.0
geoScaleZnumber
Gets or sets the scale of the 3D geometry object along the Z-axis.
- Default Value: 1.0
geoTypenumber
Gets the type of the 3D geometry object.
- Default Value: 0
isGeometryDirtyboolean
Whether geometry needs update
- Default Value: {"get": "", "set": ""}
isLatLonboolean
Whether geometry insertion point is in longitude/latitude
- Default Value: {"get": "", "set": ""}
modelMatrixMatirx4
Matrix
- Default Value: {"get": ""}
SRIDnumber
Projection coordinate parameters. Through this parameter, the server determines whether the coordinate reference system of the geometric object is the same as the dataset. If it is different, it performs projection transformation on the geometric object.
Example
var geometry= new Geometry3D();
geometry.SRID=4326;
Methods
-
getBounds()
-
Gets the geographic extent of the 3D geometry object, which is the minimum bounding rectangle of the 3D geometry object. For a point, the minimum bounding rectangle is the point itself.