Skip to content

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

Intermact v1.0 — 文档覆盖 Phase-1 / Phase-2 / Phase-3(全阶段)