Skip to content

Intermact API Reference / @intermact/core / pairContours

Function: pairContours()

pairContours(from, to, count): AlignedMorph

Defined in: packages/core/src/animation/morph.ts:103

Pair two contour sets by descending length (design.md §11.4: match by area/length). Each pair is arc-length resampled to count; the shorter set is padded with collapsed contours so unmatched contours grow/shrink in place.

Parameters

from

readonly NormalizedContour[]

to

readonly NormalizedContour[]

count

number

Returns

AlignedMorph

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