InscribeRegionInRegion
Shifts source region so that it is contained in target region.
Syntax
C++
C#
Python
def InscribeRegionInRegion( inTargetRegion: Region, inSourceRegion: Region, /, *, inPossibleShift: ShiftType = ShiftType.Any, inFitType: FitType = FitType.FirstFit ) -> ( outShiftX: int | None, outShiftY: int | None, outShiftedRegion: Region | None )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inTargetRegion | Region | Region to contain source region | |
![]() |
inSourceRegion | Region | Region to be shifted | |
![]() |
inPossibleShift | ShiftType | ShiftType.Any | Possible directions of shift |
![]() |
inFitType | FitType | FitType.FirstFit | Determines if the common border length should be maximized |
![]() |
outShiftX | int | None | X coordinate of the shift | |
![]() |
outShiftY | int | None | Y coordinate of the shift | |
![]() |
outShiftedRegion | Region | None | Shifted source region |


