Reference·JavaScript · @bimworks/viewer3dJavaScript

SectionBox

Class in @bimworks/viewer3d.

API catalogue · @bimworks/viewer3d · Class

TypeScript#
class SectionBox

Members#

Member Kind Description
constructor Method
getAnnotationMode Method
getAnnotationReach Method
isVisible Method
setAnnotationMode Method Set the annotation mode of all six faces of the box (SectionPlane.setAnnotationMode). A new box starts with the mode of SectionPlanes.annotationDefaults, "hi…
setAnnotationReach Method Set the annotation reach of all six faces of the box (SectionPlane.setAnnotationReach): around one storey in "project" with a reach of a storey height, the s…
setVisible Method Draw all six faces of the box or none (SectionPlane.setVisible): hidden, the box still cuts. A new box is drawn. Has no effect once this box is no longer the…

constructor#

TypeScript#
constructor()

getAnnotationMode#

TypeScript#
getAnnotationMode(): SectionPlaneAnnotationMode | null

Returns#

The annotation mode of the faces of the box, null while they differ

getAnnotationReach#

TypeScript#
getAnnotationReach(): number | null

Returns#

The annotation reach of the faces of the box in mm (Infinity for no limit), null while they differ

isVisible#

TypeScript#
isVisible(): boolean | null

Returns#

Whether the faces of the box are drawn, null while they differ

setAnnotationMode#

TypeScript#
setAnnotationMode(mode: SectionPlaneAnnotationMode): void

Set the annotation mode of all six faces of the box (SectionPlane.setAnnotationMode). A new box starts with the mode of SectionPlanes.annotationDefaults, "hide" by default. Has no effect once this box is no longer the active one (another box was started, a face was removed or put back, or the planes were disabled).

Parameters#

Name Type Description
mode SectionPlaneAnnotationMode

Exceptions#

  • Error for an unknown mode

setAnnotationReach#

TypeScript#
setAnnotationReach(reach: number): void

Set the annotation reach of all six faces of the box (SectionPlane.setAnnotationReach): around one storey in "project" with a reach of a storey height, the storey above lands on the top face and the one below on the bottom face, and the others are hidden. A new box starts with the reach of SectionPlanes.annotationDefaults, no limit by default. Has no effect once this box is no longer the active one.

Parameters#

Name Type Description
reach number mm, 0 or more; Infinity for no limit

Exceptions#

  • Error for a negative distance, NaN or a value that is not a number

setVisible#

TypeScript#
setVisible(visible: boolean): void

Draw all six faces of the box or none (SectionPlane.setVisible): hidden, the box still cuts. A new box is drawn. Has no effect once this box is no longer the active one.

Parameters#

Name Type Description
visible boolean

Exceptions#

  • Error when visible is not a boolean