Skip to content

Intermact API Reference / @intermact/core / toSampledContour

Function: toSampledContour() ​

toSampledContour(points, closed): SampledContour2D

Defined in: packages/core/src/geometry/sampling.ts:136

Build a SampledContour2D (with cumulative lengths) from a points buffer.

Parameters ​

points ​

Float32Array

closed ​

boolean

Returns ​

SampledContour2D

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