M_Mesh:ClosestPoint(pos, ignoreID, maxPointID, endpointsOnly)

Version added: before 9.5

Returns the closest point to the given location

ArgumentTypeDescriptionDefaultVer
posVector2A 2D location in the layer< 9.5
ignoreIDint32Point identifier - ignore this point when testing for the closest point-1< 9.5
maxPointIDint32Point identifier - ignore points with identifiers higher than this id-1< 9.5
endpointsOnlyboolAdded in version 12false12

Return type (int32): point identifier

Returns the closest point to the given location.
String "ClosestPoint" is found in the following scripts:

Paint Bucket + (by Danfield)

SS - Multi Layer Transform Points (by simplsam)

MR Curve Tool (by eugenebabich)

Curvature (by Lukas)

AE Transform points and curvature (by A.Evseeva)

See all...