 |
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: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
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