Appearance
KBE3D / KBCore / Cesium / SphereOutlineGeometry
类: SphereOutlineGeometry
A description of the outline of a sphere.
示例
ts
const sphere = new Cesium.SphereOutlineGeometry({
radius : 100.0,
stackPartitions : 6,
slicePartitions: 5
});
const geometry = Cesium.SphereOutlineGeometry.createGeometry(sphere);参数
Object with the following properties:
参数
The radius of the sphere.
参数
The count of stacks for the sphere (1 greater than the number of parallel lines).
参数
The count of slices for the sphere (Equal to the number of radial lines).
参数
The number of points per line, determining the granularity of the curvature .
属性
packedLength
staticpackedLength:number
The number of elements used to pack the object into an array.
方法
pack()
staticpack(value:SphereOutlineGeometry,array:number[],startingIndex?:number):number[]
Stores the provided instance into the provided array.
参数
value
SphereOutlineGeometry
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?:SphereOutlineGeometry):SphereOutlineGeometry
Retrieves an instance from a packed array.
参数
array
number[]
The packed array.
startingIndex?
number
The starting index of the element to be unpacked.
result?
SphereOutlineGeometry
The object into which to store the result.
返回
SphereOutlineGeometry
The modified result parameter or a new SphereOutlineGeometry instance if one was not provided.
createGeometry()
staticcreateGeometry(sphereGeometry:SphereOutlineGeometry):Geometry|undefined
Computes the geometric representation of an outline of a sphere, including its vertices, indices, and a bounding sphere.
参数
sphereGeometry
SphereOutlineGeometry
A description of the sphere outline.
返回
Geometry | undefined
The computed vertices and indices.
构造函数
构造函数
new SphereOutlineGeometry(
options?: {radius?:number;stackPartitions?:number;slicePartitions?:number;subdivisions?:number; }):SphereOutlineGeometry
参数
options?
radius?
number
stackPartitions?
number
slicePartitions?
number
subdivisions?
number
返回
SphereOutlineGeometry
