Method GrowSelection
GrowSelection(ProBuilderMesh, IEnumerable<Face>, float)
Expand the selected faces to include any face touching the perimeter edges. This corresponds to the Grow Selection action.
Declaration
public static HashSet<Face> GrowSelection(ProBuilderMesh mesh, IEnumerable<Face> faces, float maxAngleDiff = -1)
Parameters
Type | Name | Description |
---|---|---|
ProBuilderMesh | mesh | The source mesh. |
IEnumerable<Face> | faces | The faces to grow out from. |
float | maxAngleDiff | Specify the maximum difference (in degrees) between the normals on the selected face and those on the perimeter face. |
Returns
Type | Description |
---|---|
HashSet<Face> | The original faces selection, plus any new faces added as a result of the grow operation. |