Autodesk.Viewing.MeasureCommon
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 SnapType.