Region2d.ClosestSegment (Point2d, out Int32, out Int32) Method

Computes the index of the segment and contour that is closest to a given point. If the region is empty, an exception will be thrown.
Public Sub ClosestSegment( _ 
ByVal from As Point2d, _ 
ByRef polyindex As Integer, _ 
ByRef segmentindex As Integer
)
This language is not supported or no code example is available.
public void ClosestSegment( 
Point2d from
out int polyindex
out int segmentindex 
)
This language is not supported or no code example is available.
public:  
void ClosestSegment( 
Point2d^ from
int& polyindex
int& segmentindex 
)
This language is not supported or no code example is available.
public function ClosestSegment( 
from : Point2d
polyindex : int
segmentindex : int 
);
This language is not supported or no code example is available.

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.

segmentindex
int

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

.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