Class Smoothing
Provides utilities for working with smoothing groups. ProBuilder uses smoothing groups to define hard and soft edges. To calculate vertex normals, ProBuilder performs these tasks:
- Calculates the normals for every face.
- Applies the results of those calculations to each vertex on the face.
- Averages each vertex normal with coincident vertices belonging to the same smoothing group.
Inherited Members
Namespace: UnityEngine.ProBuilder
Assembly: Unity.ProBuilder.dll
Syntax
public static class Smoothing
Methods
Name | Description |
---|---|
ApplySmoothingGroups(ProBuilderMesh, IEnumerable<Face>, float) | Generates smoothing groups for a set of faces by comparing adjacent faces with normal differences less than |
GetUnusedSmoothingGroup(ProBuilderMesh) | Returns the first available unused smoothing group. |
IsSmooth(int) | Tests whether the specified smoothing group is smooth. |