 |
MeshUtilsCalculateNormals(Vector3, Int32, Boolean) Method |
CalculateNormals method calculates normals for the specified positions and and triangle indices arrays.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
Syntaxpublic 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