computeXYArea MethodStatic

Return a (signed) xy area for a region.

  • The input region should lie in a plane parallel to the xy-plane, as z-coords will be ignored.
  • For a non-self-intersecting Loop, the returned area is negative if and only if the Loop is oriented clockwise with respect to the positive z-axis.

computeXYArea(region: AnyRegion): undefined | number

Parameter Type Description
region AnyRegion any Loop, ParityRegion, or UnionRegion.

Returns - undefined | number

Defined in

Last Updated: 07 June, 2025