Skip to content

Intermact API Reference / @intermact/core / createGeometryProvider2D

Function: createGeometryProvider2D()

createGeometryProvider2D(config): GeometryProvider2D

Defined in: packages/core/src/geometry/provider.ts:46

Build a GeometryProvider2D from raw contours (design.md §5.1). When a samples count is requested (or a defaultSamples is configured and arcLength !== false), each contour is uniformly arc-length resampled; otherwise the natural vertices are returned. Bounds are always computed from the dense raw contours.

Parameters

config

GeometryProviderConfig

Returns

GeometryProvider2D

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