RegionPrimitive
public enum RegionPrimitive
One canonical shape a region's geometry is built from.
A region's geometry is a boolean tree of placed shapes, so a ring is a circle with a smaller circle subtracted and has two leaves. Most regions have exactly one.
| Value | ||
|---|---|---|
Point |
0 |
The origin, placed by the shape's transform. |
Rectangle |
1 |
A unit square, placed. |
Ellipse |
2 |
A unit circle, placed -- an ellipse once scaled unevenly. |
Line |
3 |
A segment, placed. |
Polygon |
4 |
Explicit vertices. |
Spline |
5 |
A curve through explicit control points. Open or closed is in the control points (the last equal to the first closes it), and that changes what the region measures rather than only how it looks. See Region.Spline(…). |