Reference·JavaScript · @bimworks/viewer3dJavaScript

MovablePlanes

Class in @bimworks/viewer3d.

API catalogue · @bimworks/viewer3d · Class

TypeScript#
class MovablePlanes

Members#

Member Kind Description
constructor Method
addAxisPlane Method A plane at the far side of the loaded models along a world axis, its normal along it, so a drag moves it back through them; null without a model
addPlane Method A plane through coordinate with normal (render space mm)
addTopPlane Method A horizontal plane at the top of the loaded models, where the "Top" section plane starts; null without a model
get Method
list Method
remove Method
removeAll Method

constructor#

TypeScript#
constructor()

addAxisPlane#

TypeScript#
addAxisPlane(normal: vec3): MovablePlane | null

A plane at the far side of the loaded models along a world axis, its normal along it, so a drag moves it back through them; null without a model

Parameters#

Name Type Description
normal vec3

addPlane#

TypeScript#
addPlane(coordinate: (number)[] | Float32Array<ArrayBuffer>, normal: (number)[] | Float32Array<ArrayBuffer>): MovablePlane

A plane through coordinate with normal (render space mm)

Parameters#

Name Type Description
coordinate (number)[] | Float32Array<ArrayBuffer>
normal (number)[] | Float32Array<ArrayBuffer>

addTopPlane#

TypeScript#
addTopPlane(): MovablePlane | null

A horizontal plane at the top of the loaded models, where the "Top" section plane starts; null without a model

get#

TypeScript#
get(id: number): MovablePlane | null

Parameters#

Name Type Description
id number

list#

TypeScript#
list(): (MovablePlane)[]

remove#

TypeScript#
remove(plane: MovablePlane): void

Parameters#

Name Type Description
plane MovablePlane

removeAll#

TypeScript#
removeAll(): void