Programming API Reference: SharpGfx.Geometries.Tools

Class public static Normals

Contains functions that help to compute normals.

Method public static Vector3 Reflect()

Reflects the incident vector according to the given normal.

Method public static float[] FromNonIndexedVertices()

Returns the constructed normals.
  • float[] positions

Method public static (float[] float[]) TangentsFromNonIndexedVertices()

Returns the constructed tangents.
  • float[] positions
  • float[] uv

Method public static float[] FromTriangles()

Returns the constructed normals.
  • float[] positions
  • TIndex[] triangles