SceneSnapResult

external interface SceneSnapResult(source)

The result of a snap operation. See Scene.snap.

Properties

Link copied to clipboard
abstract val isEdge: Boolean

true if the snap point lies on an edge; false if it lies on a surface.

Link copied to clipboard
abstract val obj: JsAny
Link copied to clipboard
abstract val position: Cartesian3

The world-space position of the snap point, un-projected from the snap framebuffer's eye-space depth.

Link copied to clipboard

The window coordinates of the snap point.

Link copied to clipboard

The world-space position of the same object's surface fragment nearest the snap point. For a surface snap this equals position; for an edge snap it is a point on a face of the object rather than on its silhouette, or undefined if no surface fragment of the object is visible in the search region.