IFClite TypeScript API
    Preparing search index...

    WASM geometry kernel: ingests element geometry into a Rust ClashSession (flat arenas) and runs each rule's broad + narrow phase in Rust. Produces the same NarrowRecords as TsKernel — the orchestrator above is identical, so the two engines are differentially comparable.

    Any per-element transform is baked into the world-space arena here, because the Rust kernel consumes world-space geometry directly (no transform path).

    Implements

    • ClashKernel
    Index
    • Detect clashes for one rule. groupA/groupB are GLOBAL element indices; groupB === null means a self-clash within groupA. Returned records carry GLOBAL element indices. maxPairs caps candidate pairs (Infinity = no cap).

      Parameters

      • _elements: ClashElement[]
      • groupAIdx: number[]
      • groupBIdx: number[] | null
      • rule: ClashRule
      • tolerance: number
      • _maxPairs: number
      • Optionalsignal: AbortSignal
      • OptionalonProgress: (done: number, total: number) => void

      Returns Promise<RuleDetection>

    • Release any resources (e.g. a WASM session). Optional.

      Returns void

    • Ingest the elements once (build any indices).

      Parameters

      Returns void