Header menu logo Nu

ContourSlugGeometry Type

Pure Slug geometry for one GPU draw (fill or stroke). Contains only curve and band data — no paint/color fields. The fill-rule flag distinguishes EvenOdd from NonZero winding.

Record fields

Record Field Description

BandCurveIndices

Full Usage: BandCurveIndices

Field type: uint32 array

For each band entry, the list of curve indices in that band.

Field type: uint32 array

BandEntries

Full Usage: BandEntries

Field type: ContourBandEntry array

Per-band curve indices, packed as a flat uint array. First H-band entries, then V-band entries.

Field type: ContourBandEntry array

BandTransform

Full Usage: BandTransform

Field type: Vector4

Band transform: (scaleX, scaleY, offsetX, offsetY) to map renderCoord -> band index.

Field type: Vector4

Curves

Full Usage: Curves

Field type: ContourCurve array

Geometric curvature.

Field type: ContourCurve array

FillWinding

Full Usage: FillWinding

Field type: ContourWinding

Winding rule for the geometry.

Field type: ContourWinding

HBands

Full Usage: HBands

Field type: int

Number of horizontal bands.

Field type: int

LocalBounds

Full Usage: LocalBounds

Field type: Box2

Local bounding box of the geometry.

Field type: Box2

VBands

Full Usage: VBands

Field type: int

Number of vertical bands.

Field type: int

Type something to start searching.