getBoundingBox
Returns the bounding box of the specified objects.
Example
Usage
const objectIds = ["object-1", "object-2"];
const boundingBox = viewer3d.getBoundingBox(objectIds);Parameters
objectIds
List of object ids.
Type | Required |
|---|---|
Array[String] | Yes |
Return Value
The bounding box of the objects.
Type |
|---|
Box3 |
Example
{
max: {
x: 100,
y: 100,
z: 0,
},
min: {
x: 0,
y: 0,
z: 0,
},
}