draw.Drawing.hatch
draw.Drawing: D = hatch (D, P)
draw.Drawing: D = hatch (D, P, PATTERN)
draw.Drawing: D = hatch (D, P, PATTERN, ANGLE, SPACING)
Append a hatched region bounded by the closed polygon P.
P is an -by-2 matrix of at least three vertices,
implicitly closed. PATTERN names the fill and defaults to
'ANSI31', the 45-degree hatch that means cut material.
ANGLE rotates the pattern, in degrees, and SPACING sets the
line spacing in millimetres.
Not every backend can render a hatch. DXF R12 has no HATCH
entity at all, so a drawing may legitimately carry hatches that the DXF
output cannot express; see dxf.write. The model records the
intent regardless, which is what lets the backend decide what to do
about it.
Source Code: draw.Drawing