MovablePlanes
Class in @bimworks/viewer3d.
API catalogue · @bimworks/viewer3d · Class
TypeScript#
class MovablePlanesMembers#
| 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 | nullA 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>): MovablePlaneA plane through coordinate with normal (render space mm)
Parameters#
| Name | Type | Description |
|---|---|---|
coordinate |
(number)[] | Float32Array<ArrayBuffer> |
|
normal |
(number)[] | Float32Array<ArrayBuffer> |
addTopPlane#
TypeScript#
addTopPlane(): MovablePlane | nullA 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 | nullParameters#
| Name | Type | Description |
|---|---|---|
id |
number |
list#
TypeScript#
list(): (MovablePlane)[]remove#
TypeScript#
remove(plane: MovablePlane): voidParameters#
| Name | Type | Description |
|---|---|---|
plane |
MovablePlane |
removeAll#
TypeScript#
removeAll(): void