Table of Contents

Class DxfHatchLoop

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

A loop of a HATCH, as AutoCAD's HatchLoop: what it is (LoopType) and its shape, in the world, as the library's shapes: a loop of a polyline as one GeoPolygonArc3, a loop of edges as its lines, arcs, ellipses and splines one after another.

public sealed class DxfHatchLoop
Inheritance
DxfHatchLoop
Inherited Members

Remarks

GetLoopAt(int) gives one, and AppendLoop(DxfHatchLoop) takes one. A square 30 by 20 on the floor is new DxfHatchLoop(DxfHatchLoopTypes.External, new GeoPolygonArc3(corners)); a circle of radius 10, new DxfHatchLoop(DxfHatchLoopTypes.External, new object[] { new GeoCircle3(centre, up, 10) }).

A loop read from a HATCH keeps its groups as the file has them, so that one appended to a HATCH in the same plane is written as it was read, an ellipse edge an ellipse edge and each number as it was; one made in code, or appended to a HATCH in another plane, is written from its shapes. A part of an ellipse is given as the GeoSpline3 that is exactly that part, as DxfReader gives an ELLIPSE that is not whole.

Constructors

DxfHatchLoop(DxfHatchLoopTypes, GeoPolygonArc3)

Initializes a loop of a polyline, as AutoCAD's HatchLoop of the type Polyline: its vertices with their bulges, in the world, closed.

DxfHatchLoop(DxfHatchLoopTypes, GeoPolylineArc3)

Initializes a loop of a polyline that may be open, as AutoCAD's HatchLoop of the type Polyline: closed where its last vertex is on its first, within Default, and written open otherwise, as AutoCAD keeps one it cannot close.

DxfHatchLoop(DxfHatchLoopTypes, IEnumerable<object>)

Initializes a loop of edges, as AutoCAD's HatchLoop with its Curves: in the world, one after another, each a GeoLine3, GeoArc3, GeoCircle3, GeoEllipse3, GeoSpline3 or GeoEdge3; a GeoPolylineArc3 or GeoPolygonArc3 among them gives its segments.

Properties

Curves

Gets the edges of a loop of edges, as AutoCAD's Curves, in their order; none for a loop of a polyline.

IsPolyline

Gets whether the loop is one of a polyline, as AutoCAD's IsPolyline: Polyline is its shape.

LoopType

Gets what the loop is, as AutoCAD's LoopType: the flags of its group 92.

Polyline

Gets the shape of a loop of a polyline, as AutoCAD's Polyline: a GeoPolygonArc3 for a closed one; a GeoPolylineArc3 for one that is open, or so thin it closes no area the library takes, its first vertex again at its end where it is closed. Null for a loop of edges.