Method GetLoopAt
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
GetLoopAt(int)
Gets a loop, as AutoCAD's GetLoopAt: what it is and its shape in the world, as DxfHatchLoop says.
A loop of a polyline is a GeoPolygonArc3 of its vertices and bulges, a polyline of two vertices joined by
an arc given a vertex at the middle of the arc, as DxfReader gives a LWPOLYLINE so; a loop of edges is
its lines (GeoLine3), arcs (GeoArc3, a GeoCircle3 for a whole turn),
ellipses (GeoEllipse3 for a whole one, the GeoSpline3 that is exactly the part of one) and
splines (GeoSpline3), each running the way the loop runs; an arc edge whose two angles (50 and 51) are the
same is a whole circle.
public DxfHatchLoop GetLoopAt(int loopIndex)
Parameters
loopIndexintThe index of the loop, from nought.
Returns
- DxfHatchLoop
The loop.
Exceptions
- ArgumentOutOfRangeException
Thrown when the HATCH has no loop of the index.
- InvalidOperationException
Thrown when an edge of the loop is no shape: an arc or an ellipse of no size, a spline with no control points or with knots that do not agree with them.