| Modifier and Type | Field and Description | 
|---|---|
| static Integer | packedLengthThe number of elements used to pack the object into an array. | 
attributes, boundingSphere, indices, primitiveType| Constructor and Description | 
|---|
| BoxGeometry(BoxGeometryOptions options)Describes a cube centered at the origin. | 
| Modifier and Type | Method and Description | 
|---|---|
| static Geometry | createGeometry(BoxGeometry boxGeometry)Computes the geometric representation of a box, including its vertices, indices, and a bounding sphere. | 
| static BoxGeometry | fromAxisAlignedBoundingBox(AxisAlignedBoundingBox boundingBox)Creates a cube from the dimensions of an AxisAlignedBoundingBox. | 
| static BoxGeometry | fromDimensions(BoxGeometryOptions options)Creates a cube centered at the origin given its dimensions. | 
| static double[] | pack(BoxGeometry value,
    double[] array)Stores the provided instance into the provided array. | 
| static double[] | pack(BoxGeometry value,
    double[] array,
    Integer startingIndex)Stores the provided instance into the provided array. | 
| static BoxGeometry | unpack(double[] array)Retrieves an instance from a packed array. | 
| static BoxGeometry | unpack(double[] array,
      Integer startingIndex)Retrieves an instance from a packed array. | 
| static BoxGeometry | unpack(double[] array,
      Integer startingIndex,
      BoxGeometry result)Retrieves an instance from a packed array. | 
computeNumberOfVerticespublic static Integer packedLength
@JsConstructor public BoxGeometry(BoxGeometryOptions options)
@JsMethod public static Geometry createGeometry(BoxGeometry boxGeometry)
boxGeometry - A description of the box.@JsMethod public static BoxGeometry fromAxisAlignedBoundingBox(AxisAlignedBoundingBox boundingBox)
boundingBox - A description of the AxisAlignedBoundingBox.createGeometry(org.cesiumjs.cs.core.geometry.BoxGeometry)@JsMethod public static BoxGeometry fromDimensions(BoxGeometryOptions options)
options - BoxGeometryOptions objectcreateGeometry(org.cesiumjs.cs.core.geometry.BoxGeometry)@JsMethod public static double[] pack(BoxGeometry value, double[] array)
value - The value to pack.array - The array to pack into.@JsMethod public static double[] pack(BoxGeometry value, double[] array, Integer startingIndex)
value - The value to pack.array - The array to pack into.startingIndex - The index into the array at which to start packing the elements.@JsMethod public static BoxGeometry unpack(double[] array)
array - The packed array.@JsMethod public static BoxGeometry unpack(double[] array, Integer startingIndex)
array - The packed array.startingIndex - The starting index of the element to be unpacked.@JsMethod public static BoxGeometry unpack(double[] array, Integer startingIndex, BoxGeometry result)
array - The packed array.startingIndex - The starting index of the element to be unpacked.result - The object into which to store the result.Copyright © 2019. All rights reserved.