Region2d.ClosestNode (Point2d, out Int32, out Int32, out Double) Method

Computes the index of the node and contour that is closest to a given point. If the region is empty, an exception will be thrown. This function also givest the actual distance between point and node.
public void ClosestNode( 
   Point2d from
   out int polyindex
   out int nodeindex
   out double distance 
)

Parameters

from
Point2d

The point to be as close as possible to.

polyindex
int

Set to the index of the contour closest to the point.

nodeindex
int

Set to the index of the node closest to the point.

distance
double

Set to the distance from the point to the closest node.

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8

In this article

Definition