new Cesium.BoxOutlineGeometry(options)

以源头为中心的立方体的轮廓描述.
Name Type Description
options object 下列属性的对象 :
Name Type Description
minimum Cartesian3 框的最低x,y,和z坐标.
maximum Cartesian3 框的最大x,y,和z坐标.
Example:
const box = new Cesium.BoxOutlineGeometry({
  maximum : new Cesium.Cartesian3(250000.0, 250000.0, 250000.0),
  minimum : new Cesium.Cartesian3(-250000.0, -250000.0, -250000.0)
});
const 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

从 AxisAcentingBox 的尺寸创建立方体的大纲.
Name Type Description
boundingBox AxisAlignedBoundingBox Axisacent BondingBox的描述. 星洲网.
Returns:
Example:
const 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
]));
const box = Cesium.BoxOutlineGeometry.fromAxisAlignedBoundingBox(aabb);

 
See:

static Cesium.BoxOutlineGeometry.fromDimensions(options)BoxOutlineGeometry

创建以原点为中心的立方体的轮廓,并给出其尺寸.
Name Type Description
options object 下列属性的对象 :
Name Type Description
dimensions Cartesian3 存储在x,y,和z坐标的框的宽度,深度和高度分别是 Cartesian3 .
Returns:
Throws:
  • DeveloperError : All dimensions components must be greater than or equal to zero.
Example:
const box = Cesium.BoxOutlineGeometry.fromDimensions({
  dimensions : new Cesium.Cartesian3(500000.0, 500000.0, 500000.0)
});
const 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 The index into the array at which to start packing the elements.
Returns:
装入的阵列

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

从组合的数组中获取实例 .
Name Type Default Description
array Array.<number> 装填的阵列.
startingIndex number 0 optional The starting index of the element to be unpacked.
result BoxOutlineGeometry optional 存储结果的对象.
Returns:
未提供修改的结果参数或新框外线图形实例 .
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.