Table of Contents

Property Area

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

Area

Gets the area the HATCH fills, as AutoCAD's Area: that of each loop, worked out exactly on its lines, arcs, ellipses and splines (a spline by Gauss's rule, sixteen points to each span of its knots), added or taken off by how deep the loop lies among the others and the HatchStyle: in the normal style every other one, from the outermost in; in the outer style the outermost less those just inside them; ignoring islands, the outermost alone. A square 30 by 20 round a circle of radius 5 fills 521.46 in the normal style.

public double Area { get; }

Property Value

double

Remarks

A loop lies within another where more of the points it is drawn through, and the middles between them, lie inside the other than outside it, by the even-odd rule, those within Default of the other's edge not counted; where all of them are on that edge, a point inside the loop decides. So an island that touches the outer loop, a triangle in a corner of a square or a notch on its side, is taken off: the square 10 by 10 with the triangle (10, 5), (5, 10), (5, 5) fills 87.5. Loops that cross each other are not cut where they cross: each is within the other or not as most of its points are, so two squares 10 by 10 that overlap by a quarter fill 200, where AutoCAD fills 150. Two loops each within the other, as one loop given twice, count the later within the earlier, as the even-odd rule counts them: a square 10 by 10 given twice fills nothing, and the same round an island given twice fills 100.

Exceptions

InvalidOperationException

Thrown when a loop has an edge that is no shape, as GetLoopAt(int) says.