用于定义椭球体几何结构类。
Name | Type | Default | Description |
---|---|---|---|
options.radii |
Cartesian3 |
Cartesian3(1.0, 1.0, 1.0)
|
optional 椭球体在 x、y 和 z 方向上的半径。 |
options.stackPartitions |
Number |
64
|
optional 将椭球体划分为堆栈的次数。 |
options.slicePartitions |
Number |
64
|
optional 将椭球面分割成径向切图的次数。 |
options.vertexFormat |
VertexFormat |
VertexFormat.DEFAULT
|
optional 要计算的顶点属性。 |
Throws:
-
DeveloperError : options.slicePartitions 不能少于三个。
-
DeveloperError : options.stackPartitions 不能少于三个。
- EllipsoidGeometry#createGeometry
Example:
var ellipsoid = new SuperMap3D.EllipsoidGeometry({
vertexFormat : SuperMap3D.VertexFormat.POSITION_ONLY,
radii : new SuperMap3D.Cartesian3(1000000.0, 500000.0, 500000.0)
});
var geometry = SuperMap3D.EllipsoidGeometry.createGeometry(ellipsoid);
See:
Members
-
用于将对象打包到数组中的元素个数。
Methods
-
staticSuperMap3D.EllipsoidGeometry.createGeometry(ellipsoidGeometry) → Geometry|undefined
-
计算椭球体的几何表示,包括其顶点、索引和包围球。
Name Type Description ellipsoidGeometry
EllipsoidGeometry 对椭球体的描述。 Returns:
计算的顶点和索引。 -
将提供的实例存储到提供的数组中。
Name Type Default Description value
EllipsoidGeometry 要打包的值。 array
Array.<Number> 要打包的数组。 startingIndex
Number 0
optional 开始打包元素的数组索引。 Returns:
装入的数组。 -
staticSuperMap3D.EllipsoidGeometry.unpack(array, startingIndex, result) → EllipsoidGeometry
-
从打包数组中检索实例。
Name Type Default Description array
Array.<Number> 打包的数组。 startingIndex
Number 0
optional 要解包的元素的起始索引。 result
EllipsoidGeometry optional 存储结果的对象。 Returns:
修改后的结果参数或新的 EllipsoidGeometry 实例(如果未提供)。