Start » Filter Reference » Path » Polygon Features » PolygonOrientation
Module: | FoundationBasic |
---|
Computes the polygon orientation as angle with value in range 0.0 - 180.0.
Name | Type | Description | |
---|---|---|---|
inPolygon | Path | ||
outOrientationAngle | Real |
Description
Polygon orientation can be thought of as the direction in which the polygon is oriented. Mathematically it is the angle between X-axis and the line passing through the polygon mass center, that rotation around this line produces the smallest torque.
Note that if the input path is not a valid polygon (i.e. it has at least one self-intersection), the computation may lead to results that are not intuitive.
Examples
Errors
This filter can throw an exception to report error. Read how to deal with errors in Error Handling.
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Degenerate polygon on input in PolygonOrientation. |
DomainError | Open path on input in PolygonOrientation. |
Complexity Level
This filter is available on Advanced Complexity Level.
See Also
- RegionOrientation – Computes the orientation of a region as an angle of value in a proper range.