Skip to content

Documentation / @ripl/3d / computeFaceNormal

Function: computeFaceNormal() ​

computeFaceNormal(vertices): Vector3

Defined in: 3d/src/shading.ts:26

Computes the surface normal of a face from its first three vertices via the cross product.

Parameters ​

ParameterType
verticesVector3[]

Returns ​

Vector3