Method FlipEdge
FlipEdge(ProBuilderMesh, Face)
Reverses the orientation of the middle edge in a quad.
. _____ _____
. |\ | | /|
. | \ | => | / |
. |____\| |/____|
This is the equivalent to the Flip Face Edge action.
Declaration
public static bool FlipEdge(this ProBuilderMesh mesh, Face face)
Parameters
Type | Name | Description |
---|---|---|
ProBuilderMesh | mesh | The mesh that face belongs to. |
Face | face | The target face. |
Returns
Type | Description |
---|---|
bool | True if successful; false if not. This operation will fail if the face does not contain two triangles with exactly two shared vertices. |