IFClite TypeScript API
    Preparing search index...

    Function clashIntersectionSolid

    • Compute the intersection solid of one clashing pair.

      positionsA / positionsB are flat world-space XYZ; indicesA / indicesB are flat triangle indices into their own operand.

      const solid = clashIntersectionSolid(posA, idxA, posB, idxB);
      if (solid.isSolid) {
      draw(solid.positions, solid.indices, solid.volumeM3);
      } else {
      keepContactMarker(solid.degenerateReason); // e.g. "no-overlap"
      }
      solid.free();

      Parameters

      • positions_a: Float32Array
      • indices_a: Uint32Array
      • positions_b: Float32Array
      • indices_b: Uint32Array

      Returns ClashIntersectionSolidJs