crashcat docs
    Preparing search index...

    Function computeShrunkHullPoints

    • Compute the convex-radius-shrunk hull vertices (unscaled) into dst as a flat [x,y,z,...] array. Each neighbouring face plane is offset inward by the convex radius (constant += r) and the up-to-3 planes are intersected (Cramer's rule). For a 2-face vertex the third plane is perpendicular to the first two through the vertex; its n1 × n2 normal is left unnormalized (the intersection is invariant to per-plane scale).

      Computed once per shape at create time (see convex-hull.ts) and borrowed by the exclude-mode fill, so convexRadius is passed in explicitly rather than read off the (not-yet-built) shape.

      Parameters

      • shape: Pick<
            ConvexHullShape,
            "numPoints"
            | "pointPositions"
            | "pointNumFaces"
            | "pointFaces"
            | "planes",
        >
      • convexRadius: number
      • dst: number[]

      Returns void