Method FloodSelection
FloodSelection(ProBuilderMesh, IList<Face>, float)
Recursively adds all faces touching any of the selected faces to the selection.
This corresponds to the Grow Selection action.
Declaration
public static HashSet<Face> FloodSelection(ProBuilderMesh mesh, IList<Face> faces, float maxAngleDiff)
Parameters
Type | Name | Description |
---|---|---|
ProBuilderMesh | mesh | The source mesh. |
IList<Face> | faces | The selected faces. |
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. |