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
Input value inTargetRegion Region Region to contain source region
Input value inSourceRegion Region Region to be shifted
Input value inPossibleShift ShiftType ShiftType.Any Possible directions of shift
Input value inFitType FitType FitType.FirstFit Determines if the common border length should be maximized
Output value outShiftX int | None X coordinate of the shift
Output value outShiftY int | None Y coordinate of the shift
Output value outShiftedRegion Region | None Shifted source region