Method GetFaceLoop
GetFaceLoop(ProBuilderMesh, Face[], bool)
Finds and returns a face loop.
This is the equivalent of the Select Face Loop and Select Face Ring actions.
Declaration
public static HashSet<Face> GetFaceLoop(ProBuilderMesh mesh, Face[] faces, bool ring = false)
Parameters
Type | Name | Description |
---|---|---|
ProBuilderMesh | mesh | The source mesh. |
Face[] | faces | The faces to scan for loops. |
bool | ring | Toggles between loop and ring. Ring and loop are arbritary with faces, so this parameter just toggles between which gets scanned first. |
Returns
Type | Description |
---|---|
HashSet<Face> | A collection of faces gathered by extending a ring or loop, |