Skip to content

Intermact API Reference / @intermact/render-three / ComputeResult

Type Alias: ComputeResult

ComputeResult = { kind: "resample"; points: Float32Array; } | { indices: Uint32Array; kind: "triangulate"; vertices: Float32Array; } | { indices: Uint32Array; kind: "marching-cubes"; normals?: Float32Array; positions: Float32Array; } | { contours: readonly FlatContour[]; kind: "parse-svg-path"; }

Defined in: worker/protocol.ts:39

The result of a ComputeJob, discriminated by the same kind.

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