Polygon Object (Layout Editor)

The Polygon object provides a polygon container in a 2D Cartesian coordinate system. Objects have no link to specific Layout primitives. All values and interfaces are specified in meters.

A Layout object can be used to create an empty, and open, Polygon as:

oPolygon = oLayout.Polygon()

The following methods are available.

AddPoint

SetClosed

IsClosed

Move

Rotate

Scale

MirrorX

GetPoints

AddHole

HasHoles

GetHoles

HasArcs

HasSelfIntersections

BBoxLL

BBoxUR

IsParametric

IsConvex

IsPoint

IsSegment

IsArc

IsBox

IsCircle

GetBoundingCircleCenter

GetBoundingCircleRadius

Area

PointInPolygon

CircleIntersectsPolygon

GetIntersectionType

GetClosestPoint

GetClosestPoints

Unite

Intersect

Subtract

Xor