---
title: getBoundingBox
slug: viewer-3d/methods/getBoundingBox
docTags: 
createdAt: 2024-03-01T14:17:48.683Z
---

Returns the bounding box of the specified objects.

## Example

::codepen{url="https://codepen.io/Catenda/embed/ZEdyvrY"}

## Usage

```javascript
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](docId\:w-y1d3ZvTa83YjyCEvckw) |

### Example

```javascript
{
  max: {
    x: 100,
    y: 100,
    z: 0,
  },
  min: {
    x: 0,
    y: 0,
    z: 0,
  },
}
```

