Get all edges length.
Return the number of elements in the list
number of elements in the list
Return face orientation: one of ORIENTATION.CCW, ORIENTATION.CW, ORIENTATION.NOT_ORIENTABLE
According to Green theorem the area of a closed curve may be calculated as double integral,
and the sign of the integral will be defined by the direction of the curve.
When the integral ("signed area") will be negative, direction is counterclockwise,
when positive - clockwise and when it is zero, polygon is not orientable.
See https://mathinsight.org/greens_theorem_find_area
Set arcLength property for the given edge in the face. ArcLength of the edge it the arc length from the first edge of the face
Returns signed area of the simple face. Face is simple if it has no self intersections that change its orientation. Then the area will be positive if the orientation of the face is clockwise, and negative if orientation is counterclockwise. It may be zero if polygon is degenerated.
Return an array of elements from start to end If start or end is not defined, take the first as the start, the last as the end
Optionalstart: LinkedListElementStarting position (optional)
Optionalend: LinkedListElementEnding position (optional)
Array containing elements
Staticpoints2segmentsStatictestThrow an error if a circular loop is detected in the linked list
Element to start iteration
Class representing a face (closed loop) in a [polygon]Polygon object. Face is a circular bidirectional linked list of [edges]Edge. Face object cannot be instantiated with a constructor. Instead, use [polygon.addFace()]Polygon#addFace method.
Note, that face only set entry point to the linked list of edges but does not contain edges by itself. Container of edges is a property of the polygon object.
Example