Click or drag to resize
Ab4d.SharpEngine logo

MeshUtils.CreateFlatShadedMesh(Vector3[], Int32[]) Method

CreateFlatShadedMesh converts the mesh defined by the originalPositions and originalTriangleIndices to a flat shaded mesh (all edges are hard edges; there are no smooth edges). In this case no position is shared with any other triangle (number of new positions is the same as length of originalTriangleIndices).

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.0.9208+3b2441d6a11f923f2600f40f4296bdc3d8b46035
Syntax
C#
public static (Vector3[] , int[] ) CreateFlatShadedMesh(
	Vector3[] originalPositions,
	int[] originalTriangleIndices
)

Parameters

originalPositions  Vector3[]
original positions as array of Vector3
originalTriangleIndices  Int32[]
original TriangleIndices as array of int

Return Value

ValueTuple<Vector3[], Int32[]>
tuple with new positions and new triangle indices
See Also