Class DxfRegionLoop
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
One loop of a REGION: the curves that bound it, joined end to end in the order the loop runs, as AutoCAD's Explode
gives them for the region.
public sealed class DxfRegionLoop
- Inheritance
-
DxfRegionLoop
- Inherited Members
Remarks
An outer loop runs counter-clockwise about the normal of its region and a hole clockwise. A whole circle or ellipse is one DxfCircle or DxfEllipse; each straight piece is a DxfLine, each piece of a circle a DxfArc, each piece of an ellipse a DxfEllipse of the parameters it spans. The curves are in no drawing: AppendEntity(DxfEntity) adds them to one.
Properties
- Area
Gets the area the loop encloses, not taking away its holes: a square of side 10 gives 100, hole or not.
- Curves
Gets the curves of the loop in the order it runs, each a new entity in no drawing; the same list on each call.
- IsHole
Gets whether the loop is a hole in the face it bounds.
- Perimeter
Gets the length of the loop: a circle of radius 7 gives 43.9823.