@twinfinity/geometryFunctionsaddEdgeNormaladdEdgeNormal CallableaddEdgeNormal<K>(edgeNormals: Map<K, EdgeNormalEntry>, i0: number, i1: number, n: Vec3, makeKey: (lo: number, hi: number) => K): voidAccumulate 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 parametersKParametersedgeNormals: Map<K, EdgeNormalEntry>i0: numberi1: numbern: Vec3makeKey: (lo: number, hi: number) => KReturns void
Accumulate a face normal for the undirected edge (i0, i1).
The caller supplies a
makeKeyfunction that turns the canonical (lo, hi) vertex-index pair into the map's key type.