BoxOutlineGeometry

new Cesium.BoxOutlineGeometry(options)

以原点为中心的立方体轮廓的描述。
Name Type Description
options Object 具有以下属性的对象:
Name Type Description
minimum Cartesian3 长方体的最小x、y和z坐标。
maximum Cartesian3 长方体的最大x、y和z坐标。
Example:
var box = new Cesium.BoxOutlineGeometry({
  maximum : new Cesium.Cartesian3(250000.0, 250000.0, 250000.0),
  minimum : new Cesium.Cartesian3(-250000.0, -250000.0, -250000.0)
});
var geometry = Cesium.BoxOutlineGeometry.createGeometry(box);
See:

Members

static Cesium.BoxOutlineGeometry.packedLength : Number

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

Methods

static Cesium.BoxOutlineGeometry.createGeometry(boxGeometry)Geometry|undefined

计算长方体轮廓的几何表示,包括其顶点、索引和边界球体。
Name Type Description
boxGeometry BoxOutlineGeometry 方框轮廓的描述。
Returns:
计算的顶点和索引。

static Cesium.BoxOutlineGeometry.fromAxisAlignedBoundingBox(boundingBox)BoxOutlineGeometry

从AxisAlignedBoundingBox的维度创建多维数据集的轮廓。
Name Type Description
boundingBox AxisAlignedBoundingBox AxisAlignedBoundingBox的说明。
Returns:
Example:
var aabb = Cesium.AxisAlignedBoundingBox.fromPoints(Cesium.Cartesian3.fromDegreesArray([
     -72.0, 40.0,
     -70.0, 35.0,
     -75.0, 30.0,
     -70.0, 30.0,
     -68.0, 40.0
]));
var box = Cesium.BoxOutlineGeometry.fromAxisAlignedBoundingBox(aabb);

 
See:

static Cesium.BoxOutlineGeometry.fromDimensions(options)BoxOutlineGeometry

根据给定的尺寸,以原点为中心创建立方体的轮廓。
Name Type Description
options Object 具有以下属性的对象:
Name Type Description
dimensions Cartesian3 框的宽度、深度和高度分别存储在Cartesian3的x、y和z坐标中。
Returns:
Throws:
Example:
var box = Cesium.BoxOutlineGeometry.fromDimensions({
  dimensions : new Cesium.Cartesian3(500000.0, 500000.0, 500000.0)
});
var geometry = Cesium.BoxOutlineGeometry.createGeometry(box);
See:

static Cesium.BoxOutlineGeometry.pack(value, array, startingIndex)Array.<Number>

将提供的实例存储到提供的数组中。
Name Type Default Description
value BoxOutlineGeometry 要打包的值。
array Array.<Number> 要打包到的数组。
startingIndex Number 0 optional 数组中开始打包元素的索引。
Returns:
被压缩到的数组

static Cesium.BoxOutlineGeometry.unpack(array, startingIndex, result)BoxOutlineGeometry

从压缩数组检索实例。
Name Type Default Description
array Array.<Number> 压缩数组。
startingIndex Number 0 optional 要解包的元素的起始索引。
result BoxOutlineGeometry optional 要将结果存储到其中的对象。
Returns:
修改的结果参数或新的BoxOutlineGeometry实例(如果未提供实例)。