Polygon


superclasses:

VectorArea

attributes:

boundary OrientedPath

[insidePoint] Point

restricted:

boundary.path : Ring

constraints:

referencing for the boundary and its constituent orientedArcs is such that the polygon is circumscribed in a right-handed, clockwise fashion.

comments:

This is the primary class for specifying polygons. Note that because the boundary is treated as bounding an area in two dimensional space, the polygon is separate different from the boundary. The boundary must be constructed to ensure that the referencing of the path and the individual arcs is such that the polygon's interior is always to the right as the boundary is traversed.

The insidePoint is any arbitrary point which falls inside the bounded area and which does not intersect the boundary. An insidePoint is not required to establish the inside of a polygon, but it may be given if desired.


Links to Section 3.2 and the complete SAIF class list