用于在椭球体表面生成走廊状几何体类
可以同时使用
Primitive
和GroundPrimitive
两者进行渲染。
Name | Type | Default | Description |
---|---|---|---|
options.positions |
Array.<Cartesian3> | 定义走廊中心的位置数组。 | |
options.width |
Number | 走廊边缘之间的距离,以米为单位。 | |
options.ellipsoid |
Ellipsoid |
Ellipsoid.WGS84
|
optional 要用作参考的椭球体。 |
options.granularity |
Number |
Math.RADIANS_PER_DEGREE
|
optional 每个纬度和经度之间的距离,以弧度为单位。确定缓冲区中的位置数。 |
options.height |
Number |
0
|
optional 椭球面和位置之间的距离(以米为单位)。 |
options.extrudedHeight |
Number | optional 椭球面和拉伸面之间的距离(以米为单位)。 | |
options.vertexFormat |
VertexFormat |
VertexFormat.DEFAULT
|
optional 要计算的顶点属性。 |
options.cornerType |
CornerType |
CornerType.ROUNDED
|
optional 确定角的样式。 |
Example:
var corridor = new SuperMap3D.CorridorGeometry({
vertexFormat : SuperMap3D.VertexFormat.POSITION_ONLY,
positions : SuperMap3D.Cartesian3.fromDegreesArray([-72.0, 40.0, -70.0, 35.0]),
width : 100000
});
See:
Members
-
用于将对象打包到数组中的元素个数。
Methods
-
staticSuperMap3D.CorridorGeometry.createGeometry(corridorGeometry) → Geometry|undefined
-
计算走廊的几何算法(包括其顶点、索引和包围球)。
Name Type Description corridorGeometry
CorridorGeometry 通道的描述。 Returns:
计算的顶点和索引。 -
将提供的实例存储到提供的数组中。
Name Type Default Description value
CorridorGeometry 要打包的值。 array
Array.<Number> 要打包的数组。 startingIndex
Number 0
optional 开始打包元素的数组索引。 Returns:
装入的数组。 -
staticSuperMap3D.CorridorGeometry.unpack(array, startingIndex, result) → CorridorGeometry
-
从打包数组中检索实例。
Name Type Default Description array
Array.<Number> 打包的数组。 startingIndex
Number 0
optional 要解包的元素的起始索引。 result
CorridorGeometry optional 存储结果的对象。 Returns:
修改后的结果参数或新的 CorridorGeometry 实例(如果未提供)。