RegionToRegionDistance


Computes minimal distance between one of the points of the first region with one of the points of the second region.

Syntax

C++
C#
Python
 
def RegionToRegionDistance(
	inRegion1: Region,
	inRegion2: Region,
	inResolution: float,
	/,
	*,
	outConnectingSegment: Segment2D | None = None
)
-> outDistance: float

Parameters

Name Type Range Default Description
Input value inRegion1 Region First input region
Input value inRegion2 Region Second input region
Input value inResolution float 0.0 - Number of real-world units per one pixel
Output value outDistance float
Output value outConnectingSegment Segment2D | None None