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

Sets the current clipping planes.

## Example

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

## Usage

```javascript
const clippingPlanes = [
  {
    location: {
      x: 0,
      y: 0,
      z: 0
    },
    direction: {
      x: 0,
      y: 0,
      z: 1
    }
  }
];

viewer3d.setClippingPlanes(clippingPlanes);
```

## Parameters

### clippingPlanes

List of clipping planes.

| **Type**       | **Required** |
| -------------- | ------------ |
| Array\[Object] | Yes          |

**Properties**

| **Name**    | **Type**                                | **Required** | **Description**                 |
| ----------- | --------------------------------------- | ------------ | ------------------------------- |
| `active`    | Boolean                                 | No           | Is the active clipping plane    |
| `direction` | [Vector3](docId\:kEwRHKTC8Iq2HlT48sRFQ) | Yes          | Direction of the clipping plane |
| `location`  | [Vector3](docId\:kEwRHKTC8Iq2HlT48sRFQ) | Yes          | Location of the clipping plane  |
| `measure`   | Boolean                                 | No           | Is the measure clipping plane   |

