Reference·JavaScript · @bimworks/viewer3dJavaScript

PickResult

Interface in @bimworks/viewer3d.

API catalogue · @bimworks/viewer3d · Interface

TypeScript#
interface PickResult

What is under a position on the canvas, from Viewer3d.pick or the third argument of the rightMouseClick setting. The vectors are copies, they stay valid after later picks.

Members#

Member Kind Description
coordinate Property The point hit in render space (millimetres, globalBaseTranslation included), the frame SectionPlanes.startPlaneAt and MovablePlanes.addPlane take. Null when …
normal Property The unit normal of the surface at the coordinate, facing the camera. Null when no surface was hit
qid Property The object hit, null over empty space, the reference grid or a check overlay item

coordinate#

TypeScript#
coordinate: vec3 | null

The point hit in render space (millimetres, globalBaseTranslation included), the frame SectionPlanes.startPlaneAt and MovablePlanes.addPlane take. Null when nothing was hit

normal#

TypeScript#
normal: vec3 | null

The unit normal of the surface at the coordinate, facing the camera. Null when no surface was hit

qid#

TypeScript#
qid: Qid | null

The object hit, null over empty space, the reference grid or a check overlay item