Custom hatch-pattern parameters — alternative to the named HatchStyle presets.

interface HatchParams {
    color?: Vec3;
    families: HatchFamily[];
    opacity?: number;
    space?: HatchSpace;
}

Properties

color?: Vec3

Ink RGB colour. Defaults to black.

families: HatchFamily[]

Up to MAX_HATCH_FAMILIES line families.

opacity?: number

Ink opacity in [0, 1]. Defaults to 1.

space?: HatchSpace

Coordinate space for spacing and lineWidth. Defaults to "screen" (pixel units, camera-locked). Set to "world" for hatches that stay anchored to the geometry — typical for engineering plan / section views where the hatch represents a physical material property at a real-world pitch. See HatchSpace.