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 | |
|---|---|---|---|---|---|
![]() |
inRegion1 | Region | First input region | ||
![]() |
inRegion2 | Region | Second input region | ||
![]() |
inResolution | float | 0.0 - ![]() |
Number of real-world units per one pixel | |
![]() |
outDistance | float | |||
![]() |
outConnectingSegment | Segment2D | None | None |



