用于在椭球体表面生成圆形轮廓线的几何类。
Name | Type | Default | Description |
---|---|---|---|
options.center |
Cartesian3 | 圆在固定框架中的中心点。 | |
options.radius |
Number | 以米为单位的半径。 | |
options.ellipsoid |
Ellipsoid |
Ellipsoid.WGS84
|
optional 圆所在的椭球体。 |
options.height |
Number |
0.0
|
optional 圆与椭球面之间的距离(以米为单位)。 |
options.granularity |
Number |
0.02
|
optional 圆上点之间的角距离,以弧度为单位。 |
options.extrudedHeight |
Number |
0.0
|
optional 圆的拉伸面和椭球面之间的距离(以米为单位)。 |
options.numberOfVerticalLines |
Number |
16
|
optional 在拉伸圆的顶部和底部之间绘制的线数。 |
Throws:
-
DeveloperError : 半径必须大于零。
-
DeveloperError : 粒度必须大于零。
Example:
// Create a circle.
var circle = new SuperMap3D.CircleOutlineGeometry({
center : SuperMap3D.Cartesian3.fromDegrees(-75.59777, 40.03883),
radius : 100000.0
});
var geometry = SuperMap3D.CircleOutlineGeometry.createGeometry(circle);
See:
Members
-
用于将对象打包到数组中的元素数。
Methods
-
staticSuperMap3D.CircleOutlineGeometry.createGeometry(circleGeometry) → Geometry|undefined
-
计算椭球体表面圆形的轮廓(包括顶点、索引及包围球)的算法实现
Name Type Description circleGeometry
CircleOutlineGeometry 圆的描述。 Returns:
计算的顶点和索引。 -
将提供的实例存储到提供的数组中。
Name Type Default Description value
CircleOutlineGeometry 要打包的值。 array
Array.<Number> 要打包的数组。 startingIndex
Number 0
optional 开始打包元素的数组索引。 Returns:
装入的数组。 -
staticSuperMap3D.CircleOutlineGeometry.unpack(array, startingIndex, result) → CircleOutlineGeometry
-
从打包数组中检索实例。
Name Type Default Description array
Array.<Number> 打包的数组。 startingIndex
Number 0
optional 要解包的元素的起始索引。 result
CircleOutlineGeometry optional 存储结果的对象。 Returns:
修改后的结果参数或新的 CircleOutlineGeometry 实例(如果未提供)。