Type Definitions
Version 8 preview
This page documents a preview of the Viewer SDK v8. APIs and content can still change before the final release.
Intersection
Object that is returned by the ray cast and hit test methods for each scene object under the given canvas coordinates.
Properties
| dbId number | Internal ID of the scene object. |
| distance number | Distance of the intersection point from camera. All intersections returned by the ray casting method are sorted from the smallest distance to the largest. |
| face THREE.Face3 | THREE.Face3 object representing the triangular mesh face that has been intersected. |
| faceIndex number | Index of the intersected face, if available. |
| fragId number | ID of Viewer SDK fragment that was intersected. |
| point | Point of intersection. |
| model | Model instance the dbId belongs to. |