Skip to main content

addEdgeNormal

Callable

  • addEdgeNormal<K>(edgeNormals: Map<K, EdgeNormalEntry>, i0: number, i1: number, n: Vec3, makeKey: (lo: number, hi: number) => K): void

  • Accumulate a face normal for the undirected edge (i0, i1).

    The caller supplies a makeKey function that turns the canonical (lo, hi) vertex-index pair into the map's key type.


    Type parameters

    • K

    Parameters

    • edgeNormals: Map<K, EdgeNormalEntry>
    • i0: number
    • i1: number
    • n: Vec3
    • makeKey: (lo: number, hi: number) => K

      Returns void