> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ntop.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Refine Bounding Box

<CardGroup cols={2}>
  <Card title="Implicit Body, Scalar" href="#implicit-body-scalar" />

  <Card title="Implicit Body, Scalar, 1.1.0" href="#implicit-body-scalar-110" />

  <Card title="Implicit Body, Scalar, 2.0.0" href="#implicit-body-scalar-200" />
</CardGroup>

***

## About this Block

**What it does:** The **Refine Bounding Box** block refines the bounding box of an implicit body based on a given tolerance. This step ensures that the bounding box fits the body properly, often after performing boolean operations.

**Common uses:**

* Calculate a tight bounding box.

## Example File

Download Example:  [Refine Bounding Box](https://storage.googleapis.com/files-learn/static/ExtendedBlockDocs/refine_bounding_box.ntop)
![Example Screenshot](https://storage.googleapis.com/files-learn/static/ExtendedBlockDocs/refine_bounding_box.jpg)

***

<h2 id="implicit-body-scalar">
  Implicit Body, Scalar
</h2>

Refine the bounding box of an implicit body given a tolerance.

### Inputs

| Name      | Type                                                                 | Description                                    |
| --------- | -------------------------------------------------------------------- | ---------------------------------------------- |
| Body      | [Implicit Body](../../../../block-documentation/types/implicit-body) | Implicit body to refine.                       |
| Tolerance | [Scalar](../../../../block-documentation/types/scalar)               | Sampling tolerance to refine the bounding box. |

### Outputs

| Type                                                                 |
| -------------------------------------------------------------------- |
| [Implicit Body](../../../../block-documentation/types/implicit-body) |

***

<h2 id="implicit-body-scalar-110">
  Implicit Body, Scalar, 1.1.0
</h2>

Refine the bounding box of an implicit body given a tolerance.

### Inputs

| Name      | Type                                                                 | Description                                    |
| --------- | -------------------------------------------------------------------- | ---------------------------------------------- |
| Body      | [Implicit Body](../../../../block-documentation/types/implicit-body) | Implicit body to refine.                       |
| Tolerance | [Scalar](../../../../block-documentation/types/scalar)               | Sampling tolerance to refine the bounding box. |

### Outputs

| Type                                                                 |
| -------------------------------------------------------------------- |
| [Implicit Body](../../../../block-documentation/types/implicit-body) |

***

<h2 id="implicit-body-scalar-200">
  Implicit Body, Scalar, 2.0.0
</h2>

Refines the Bounding Box of an Implicit Body given a Grid Size.

### Inputs

| Name      | Type                                                                 | Description                                                                                                                               |
| --------- | -------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| Body      | [Implicit Body](../../../../block-documentation/types/implicit-body) | Refines the bounding box of this Body.                                                                                                    |
| Grid size | [Scalar](../../../../block-documentation/types/scalar)               | Size of the sample grid spacing. As this value gets smaller, the resulting Bounding Box will be tighter, but will take longer to compute. |

### Outputs

| Type                                                                 |
| -------------------------------------------------------------------- |
| [Implicit Body](../../../../block-documentation/types/implicit-body) |
