Shading |
public static MeshGeometry3D GetSmoothShadedMesh( MeshGeometry3D originalGeometry )
Mesh smoothing is done with optimizing the Positions Point3DCollection - all the same Positions are removed from the collection.
WARNING:
Because Positions collection is optimized, this also reduces the size of TextureCoordinates collection. When using texture image for the material, smoothing can lead to wrongly mapped textures!