 |
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.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.0.9208+3b2441d6a11f923f2600f40f4296bdc3d8b46035
Syntaxpublic static StandardMesh CreateFlatShadedMesh(
StandardMesh mesh,
string? newMeshName = null
)
Parameters
- mesh StandardMesh
- original StandardMesh
- newMeshName String (Optional)
- optional name of the new mesh
Return Value
StandardMeshNew flat shaded mesh (as StandardMesh)
See Also