Snapping option
Very often we need to select any extreme point on, for example, a linear body edge to measure its linear size. It’s not possible to accurately select any extreme point of this edge if you don’t have some snapping functionality which would calculate the nearest point of the edge relative to the current position of the mouse cursor.
And that’s what this tool is designed for. Now when you hover, for example, an edge of some body, the option will calculate the nearest point related to your cursor position and snap to that (if the distance from the cursor to this nearest point is less than some tolerance value) after some timeout. The required timeout is set with a global definition. The searching radius is defined within the option.
Snapping option type (Typescript):
export type SnapOptions = {
tolerance?: number
}
The tolerance
is a radius in a pixels for searching nearest triangle points. The snapping
option is disabled if it’s undefined (default value).
New in version 1.6.0: Added for Set Point, Add Linear Dimension and Add Angle Dimension processes.