Click or drag to resize
Ab4d.SharpEngine logo

MeshUtilsCreateFlatShadedMesh(StandardMesh, String) 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 vertices is the same as length of mesh's TriangleIndices).

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntax
C#
public static StandardMesh CreateFlatShadedMesh(
	StandardMesh mesh,
	string? newMeshName = null
)

Parameters

mesh  StandardMesh
original StandardMesh
newMeshName  String  (Optional)
optional name of the new mesh

Return Value

StandardMesh
New flat shaded mesh (as StandardMesh)
See Also