Struct DxfPatternDefinition
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
A line of a HATCH's pattern, as AutoCAD's PatternDefinition: the family of parallel lines it draws, at an angle,
through a base point, each the next by an offset, dashed as its dashes say; as the HATCH holds it, scaled and turned with
the pattern (groups 53, 43, 44, 45, 46, 79 and 49).
public readonly struct DxfPatternDefinition
- Inherited Members
Remarks
The pattern ANSI31 at the scale 1 is one line at 45 degrees through the origin, each next 3.175 across: Angle pi / 4, OffsetX -2.245 and OffsetY 2.245, and no dashes, a solid line.
Constructors
- DxfPatternDefinition(double, double, double, double, double, IEnumerable<double>)
Initializes a line of a pattern, as AutoCAD's
new PatternDefinition(angle, basePoint, offset, dashes).
Properties
- Angle
Gets the angle of the lines, as AutoCAD's
Angle: in radians from the x axis of the HATCH's plane (group 53 in degrees).
- BaseX
Gets the x of the point the first line runs through (group 43), as AutoCAD's
BaseX.
- BaseY
Gets the y of the point the first line runs through (group 44), as AutoCAD's
BaseY.
- OffsetX
Gets the x of the step from one line to the next (group 45), as AutoCAD's
OffsetX.
- OffsetY
Gets the y of the step from one line to the next (group 46), as AutoCAD's
OffsetY.
Methods
- GetDashes()
Gets the dashes of the lines (groups 49), as AutoCAD's
GetDashes: a length above nought drawn, below it left out, nought a dot; none for a solid line.