/// Represents a hatch element, filling a region defined by boundary loops with a pattern.
public class Hatch : Element
{
// Constructors
public Hatch() { }
public Hatch(
List<Element> boundaryElements,
HatchPattern pattern = HatchPattern.SOLID,
float scale = 1.0f,
float angle = 0f,
Plane3D plane = null,
Vector2? patternOrigin = null) { }
// Important Properties
public List<Element> BoundaryElements { get; set; } // A list of geometric elements defining the single, closed outer boundary of the hatch.
public HatchPattern Pattern { get; set; } // The hatch pattern to apply.
public float Scale { get; set; } // The scale factor applied to the hatch pattern.
public float Angle { get; set; } // The rotation angle in radians applied to the hatch pattern.
public Plane3D Plane { get; set; } // The plane on which the hatch boundary loops lie.
public Vector2 PatternOrigin { get; set; } // The origin point for the hatch pattern.
// Other Accessible Properties
public string LayerName { get; set; } // The name of the layer this element belongs to.
public string ColorARGB { get; set; } // Element color represented as an AARRGGBB hex string.
public PropertyMethod ColorMethod { get; set; } // Element color method.
public LineType? LineType { get; set; } // The line type for this element.
public float? LineTypeScale { get; set; } // The scale of the line type.
public PropertyMethod LineTypeMethod { get; set; } // Element line type method.
public float? LineWeight { get; set; } // The line weight for this element.
public PropertyMethod LineWeightMethod { get; set; } // Element lineWeight method.
public string MaterialName { get; set; } // The name of the material for this element.
public int? DisplayOrder { get; set; } // The element printing and displaying order.
public bool? IsVisible { get; set; } // The element visibility status.
}