MakeRegionConditional


Computes a region feature, checks whether its value is in range and creates a conditional region on this basis.

Syntax

C++
C#
Python
 
def MakeRegionConditional(
	inRegion: Region,
	/,
	*,
	inFeature: RegionFeature = RegionFeature.Area,
	inMinimum: float | None = None,
	inMaximum: float | None = None
)
-> outConditionalRegion: Region | None

Parameters

Name Type Default Description
Input value inRegion Region Input region
Input value inFeature RegionFeature RegionFeature.Area Region feature value to be computed
Input value inMinimum float | None None Lowest value of the range
Input value inMaximum float | None None Highest value of the range
Output value outConditionalRegion Region | None The region if the condition is met or nothing otherwise