Class: EllipseOutlineGeometry

EllipseOutlineGeometry

new EllipseOutlineGeometry()

用于在椭球体表面创建椭圆或圆形线框几何体类

Name Type Default Description
options.center Cartesian3

椭圆在固定坐标系中的中心点。

options.semiMajorAxis Number

椭圆半长轴的长度,以米为单位。

options.semiMinorAxis Number

椭圆的短半轴长度,以米为单位。

options.ellipsoid Ellipsoid Ellipsoid.WGS84 可选

椭圆所在的椭球体。

options.height Number 0.0 可选

椭圆和椭球表面之间的距离(以米为单位)。

options.extrudedHeight Number 可选

椭圆拉伸面与椭球体表面之间的距离(以米为单位)。

options.rotation Number 0.0 可选

从北(逆时针)的角度,以弧度为单位。

options.granularity Number 0.02 可选

椭圆上的点之间的角距离,以弧度为单位。

options.numberOfVerticalLines Number 16 可选

在拉伸椭圆的顶面和底面之间绘制的线数。

See:
Throws:
  • semiMajorAxis 和 semiMinorAxis 必须大于零。

    Type
    DeveloperError
  • semiMajorAxis 必须大于或等于 semiMinorAxis。

    Type
    DeveloperError
  • granularity必须大于零。

    Type
    DeveloperError
Example
var ellipse = new SuperMap3D.EllipseOutlineGeometry({
  center : SuperMap3D.Cartesian3.fromDegrees(-75.59777, 40.03883),
  semiMajorAxis : 500000.0,
  semiMinorAxis : 300000.0,
  rotation : SuperMap3D.Math.toRadians(60.0)
});
var geometry = SuperMap3D.EllipseOutlineGeometry.createGeometry(ellipse);

Members

static packedLengthNumber

用于将对象打包到数组中的元素数。

Methods

static createGeometry(ellipseGeometry){Geometry|undefined}

计算椭球面上椭圆轮廓的几何表示,包括其顶点、索引和包围球。

Name Type Description
ellipseGeometry EllipseOutlineGeometry

对椭圆的描述。

Returns:
Type Description
Geometry | undefined 计算的顶点和索引。

static pack(value, array, startingIndex){Array.<Number>}

将提供的实例存储到提供的数组中。

Name Type Default Description
value EllipseOutlineGeometry

要打包的值。

array Array.<Number>

要打包的数组。

startingIndex Number 0 可选

开始打包元素的数组索引。

Returns:
Type Description
Array.<Number> 装入的数组。

static unpack(array, startingIndex, result){EllipseOutlineGeometry}

从打包数组中检索实例。

Name Type Default Description
array Array.<Number>

打包的数组。

startingIndex Number 0 可选

要解包的元素的起始索引。

result EllipseOutlineGeometry 可选

存储结果的对象。

Returns:
Type Description
EllipseOutlineGeometry 修改后的结果参数或新的 EllipseOutlineGeometry 实例(如果未提供)。