Click or drag to resize
AB4D logo

MeshUtilsCalculateNormals(Vector3, Int32, Boolean) Method

CalculateNormals method calculates normals for the specified positions and and triangle indices arrays.

Namespace: Ab3d.DirectX.Utilities
Assembly: Ab3d.DXEngine.Wpf (in Ab3d.DXEngine.Wpf.dll) Version: 7.1.9105.2048
Syntax
C#
public static Vector3[] CalculateNormals(
	Vector3[] positions,
	int[] indices,
	bool normalize = true
)

Parameters

positions  Vector3
array of Vector3 that represents positions
indices  Int32
triangle indices
normalize  Boolean  (Optional)
when true (by default), then the normals are normalized

Return Value

Vector3
See Also