---
title: SectionPlanesState
summary: Interface in @bimworks/viewer3d.
order: 10
languages: [javascript]
sdk-package: JavaScript · @bimworks/viewer3d
---

# SectionPlanesState

[[page:reference/javascript/api|API catalogue]] · `@bimworks/viewer3d` · Interface

````typescript sdk=js sdk-namespace="@bimworks/viewer3d"
interface SectionPlanesState
````

How section planes cut the model, `SectionPlanes.getState` and `SectionPlanes.setState`. Render frame, mm

## Members

| Member | Kind | Description |
|---|---|---|
| [[page:reference/javascript/bimworks-viewer3d/sectionplanesstate-ced8c42f#member-box-28b2396510b3|box]] | Property | The active section box of SectionPlanes.startSectionBox, null without one; `hidden` lists the faces that are not drawn (SectionPlane.setVisible), none when l… |
| [[page:reference/javascript/bimworks-viewer3d/sectionplanesstate-ced8c42f#member-planes-cf4f5e7a31a5|planes]] | Property | The enabled planes, oldest first, each in its slot (0..5): a point on the plane and its normal, which points to the side that is cut away, the name it is lis… |

## `box` {#member-box-28b2396510b3}

````typescript sdk=js sdk-namespace="@bimworks/viewer3d"
box: { hidden?: (StandardSectionPlane)[]; max: vec3; min: vec3 } | null
````

The active section box of `SectionPlanes.startSectionBox`, null without one; `hidden` lists the faces that
are not drawn (`SectionPlane.setVisible`), none when left out

## `planes` {#member-planes-cf4f5e7a31a5}

````typescript sdk=js sdk-namespace="@bimworks/viewer3d"
planes: ({ coordinate: vec3; index: number; name?: string; normal: vec3; standard?: StandardSectionPlane | null; visible?: boolean })[]
````

The enabled planes, oldest first, each in its slot (0..5): a point on the plane and its normal, which points to
the side that is cut away, the name it is listed by (`SectionPlane.getName`), the standard plane it is
(`SectionPlane.getStandard`) and whether it is drawn (`SectionPlane.isVisible`). getState gives every
field; setState takes a plane without name, standard or visible (drawn)
