PickResult
Interface in @bimworks/viewer3d.
API catalogue · @bimworks/viewer3d · Interface
TypeScript#
interface PickResultWhat 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#
The point hit in render space (millimetres, globalBaseTranslation included), the frame
SectionPlanes.startPlaneAt and MovablePlanes.addPlane take. Null when nothing was hit
normal#
The unit normal of the surface at the coordinate, facing the camera. Null when no surface was hit
qid#
The object hit, null over empty space, the reference grid or a check overlay item