Description
The EdgeSmoothing
property of the MeshEdge
struct in the Editor.MeshEditor
namespace specifies the smoothing mode for a particular edge in a polygon mesh. This property is of type Sandbox.PolygonMesh/EdgeSmoothMode
, which determines how the edge should be rendered in terms of smoothness.
Usage
To use the EdgeSmoothing
property, you need to have an instance of the MeshEdge
struct. This property is typically used in the context of mesh editing where you want to control the visual appearance of edges in a 3D model.
Note that this property is marked with the Sandbox.HideAttribute
and System.Text.Json.Serialization.JsonIgnoreAttribute
, indicating that it is hidden from certain UI elements and ignored during JSON serialization.
Example
// Assuming you have a MeshEdge instance named meshEdge
Sandbox.PolygonMesh.EdgeSmoothMode currentMode = meshEdge.EdgeSmoothing;
// Set the edge smoothing mode
meshEdge.EdgeSmoothing = Sandbox.PolygonMesh.EdgeSmoothMode.Smooth;