Reference·JavaScript · @bimworks/viewer3dJavaScript

SectionPlanesState

Interface in @bimworks/viewer3d.

API catalogue · @bimworks/viewer3d · Interface

TypeScript#
interface SectionPlanesState

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

Members#

Member Kind Description
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…
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#

TypeScript#
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#

TypeScript#
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)