Click or drag to resize
AB4D logo

ShadingHelperGetSmoothShadedMesh Method

Creates a new MeshGeometry3D that is created from originalGeometry and looks smooth shaded.

Namespace: Ab3d.Utilities
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public static MeshGeometry3D GetSmoothShadedMesh(
	MeshGeometry3D originalGeometry
)

Parameters

originalGeometry  MeshGeometry3D
originalGeometry

Return Value

MeshGeometry3D
Smooth shaded MeshGeometry3D
Remarks

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!

See Also