simplifyRegion MethodStatic

Simplify the region's parent/child hierarchy in place:

  • Regions with exactly one child are simplified as per simplifyRegionType.
  • Regions without children are removed.
  • No Boolean operations are performed.

simplifyRegion(region: AnyRegion): undefined | AnyRegion

@returns reference to the updated input region

@see simplifyRegionType

Parameter Type Description
region AnyRegion region to simplify in place

Returns - undefined | AnyRegion

reference to the updated input region

Defined in

Last Updated: 07 June, 2025