Skip to content

Intermact API Reference / @intermact/core / strokeContoursToOutline

Function: strokeContoursToOutline()

strokeContoursToOutline(contours, width): RawContour[]

Defined in: packages/core/src/geometry/stroke-outline.ts:181

Convert centerline contours into constant-width outline contours. width is the full pen width (world units); contours shorter than a single point are skipped, and degenerate single-point contours render as a dot.

Parameters

contours

readonly RawContour[]

width

number

Returns

RawContour[]

Intermact v1.0 — 文档覆盖 Phase-1 / Phase-2 / Phase-3(全阶段)