Skip to contents

Like hachure_fill() but takes a list of rings sharing one Active Edge Table, so the even-odd scan-line parity excludes holes and skips the gaps between disjoint pieces automatically. This is what powers the filled contour / 2-D density band geoms, whose regions have holes.

Usage

hachure_fill_multi(
  rings,
  hachure_gap = 0.1,
  hachure_angle = 45,
  roughness = 0,
  bowing = 0,
  seed = NULL
)

Arguments

rings

A list of rings, each a list with numeric x and y vertex vectors (inch space). The first ring is typically the outer boundary and the rest holes, but any even-odd arrangement of outer pieces and holes is handled.

hachure_gap

Spacing between fill lines (inches). Default 0.1.

hachure_angle

Fill angle (degrees). Default 45.

roughness

Roughness applied to each fill line. Default 0 (straight).

bowing

Bowing applied to each fill line. Default 0.

seed

Integer seed.

Value

A list of 2-column (x, y) fill-line matrices (same structure as hachure_fill()).