Method ApplySmoothingGroups
ApplySmoothingGroups(ProBuilderMesh, IEnumerable<Face>, float)
Generates smoothing groups for a set of faces by comparing adjacent faces with normal differences less than angleThreshold
(in degrees).
Declaration
public static void ApplySmoothingGroups(ProBuilderMesh mesh, IEnumerable<Face> faces, float angleThreshold)
Parameters
Type | Name | Description |
---|---|---|
ProBuilderMesh | mesh | The mesh to apply new smoothing groups to. |
IEnumerable<Face> | faces | Faces to inspect for smoothing. |
float | angleThreshold | Set the maximum value to consider the shared edge smooth. This value is an angle in degrees that represents the difference between adjacent face normals. |