• Generates the line segments of a hatch pattern clipped to its boundary, the geometry AutoCAD EXPLODE turns a pattern hatch into.

    The layout matches the hatch renderers (pattern line offsets in line-local space, patternAngle applied on top of the definition lines), so the exploded lines coincide with the displayed pattern. Boundaries use the even-odd rule.

    Parameters

    • loops: readonly (readonly AcGeVector2dLike[])[]

      Tessellated boundary loops in the hatch plane (OCS).

    • definitionLines: readonly AcGiHatchPatternLine[]

      Pattern definition lines.

    • patternAngle: number = 0

      Extra rotation applied to the definition lines.

    Returns AcDbHatchPatternSegment[]

    The pattern segments in the hatch plane; dots are returned as segments with identical end points.