Intermact API Reference / @intermact/core / computeVertexNormals
Function: computeVertexNormals()
computeVertexNormals(
positions,indices):Float32Array
Defined in: packages/core/src/geometry/provider3d.ts:111
Compute flat per-vertex normals (area-weighted) for a triangle mesh.
Parameters
positions
Float32Array
indices
Uint32Array
Returns
Float32Array