Appearance
KBE3D / KBCore / Cesium / CorridorOutlineGeometry
类: CorridorOutlineGeometry
A description of a corridor outline.
示例
ts
const corridor = new Cesium.CorridorOutlineGeometry({
positions : Cesium.Cartesian3.fromDegreesArray([-72.0, 40.0, -70.0, 35.0]),
width : 100000
});参数
Object with the following properties:
参数
An array of positions that define the center of the corridor outline.
参数
The distance between the edges of the corridor outline.
参数
The ellipsoid to be used as a reference.
参数
The distance, in radians, between each latitude and longitude. Determines the number of positions in the buffer.
参数
The distance in meters between the positions and the ellipsoid surface.
参数
The distance in meters between the extruded face and the ellipsoid surface.
参数
Determines the style of the corners.
属性
packedLength
packedLength:
number
The number of elements used to pack the object into an array.
方法
pack()
staticpack(value:CorridorOutlineGeometry,array:number[],startingIndex?:number):number[]
Stores the provided instance into the provided array.
参数
value
CorridorOutlineGeometry
The value to pack.
array
number[]
The array to pack into.
startingIndex?
number
The index into the array at which to start packing the elements.
返回
number[]
The array that was packed into
unpack()
staticunpack(array:number[],startingIndex?:number,result?:CorridorOutlineGeometry):CorridorOutlineGeometry
Retrieves an instance from a packed array.
参数
array
number[]
The packed array.
startingIndex?
number
The starting index of the element to be unpacked.
result?
CorridorOutlineGeometry
The object into which to store the result.
返回
CorridorOutlineGeometry
The modified result parameter or a new CorridorOutlineGeometry instance if one was not provided.
createGeometry()
staticcreateGeometry(corridorOutlineGeometry:CorridorOutlineGeometry):Geometry|undefined
Computes the geometric representation of a corridor, including its vertices, indices, and a bounding sphere.
参数
corridorOutlineGeometry
CorridorOutlineGeometry
A description of the corridor.
返回
Geometry | undefined
The computed vertices and indices.
构造函数
构造函数
new CorridorOutlineGeometry(
options: {positions:Cartesian3[];width:number;ellipsoid?:Ellipsoid;granularity?:number;height?:number;extrudedHeight?:number;cornerType?:CornerType; }):CorridorOutlineGeometry
参数
options
positions
width
number
ellipsoid?
granularity?
number
height?
number
extrudedHeight?
number
cornerType?
返回
CorridorOutlineGeometry
