simplifyRegionType MethodStatic
Return the region's simplest representation by stripping redundant parent(s).
- No Boolean operations are performed.
simplifyRegionType(region: AnyRegion): AnyRegion
@returns * For a UnionRegion with exactly one child, return the child if it is a Loop,
or if it is a ParityRegion with multiple children; otherwise return the ParityRegion's Loop.
- For a
ParityRegionwith exactly one child, return theLoop. - All other inputs returned unchanged.
@see simplifyRegion
| Parameter | Type | Description |
|---|---|---|
| region | AnyRegion | input region (unchanged). Assumed to have at least one child. |
Returns - AnyRegion
- For a UnionRegion with exactly one child, return the child if it is a Loop,
or if it is a ParityRegion with multiple children; otherwise return the
ParityRegion'sLoop. - For a
ParityRegionwith exactly one child, return theLoop. - All other inputs returned unchanged.
Defined in
- curve/RegionOps.ts Line 381
Last Updated: 24 October, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.