Autodesk.Viewing.MeasureCommon
Version 8 preview
This page documents a preview of the Viewer SDK v8. APIs and content can still change before the final release.
SnapResult
new SnapResult()
Encapsulates the result of a Snap operation performed by the Snapper.
Methods
clear()
Resets the object to its non-snapping state.
copyTo(destiny)
Copies the current state of the object into another.
Parameters
| destiny* | target for the copy operation. |
* Required
clone()
Creates a new instance and copies the current state into it.
Returns
| type | description |
|---|---|
| SnapResult |
isEmpty()
Returns
| type | description |
|---|---|
| boolean | true only when snapping information is available. |
getFace()
Gets the snapped face, when available.
getEdge()
Gets the snapped edge, when available.
getVertex()
Gets the snapped vertex, when available.
getGeometry()
Gets the snapped element, which differs depending on what kind of element it was snapped to, see Autodesk.Viewing.MeasureCommon.SnapType.