Method NextHalfedge
NextHalfedge(int)
Returns the next halfedge index after he.
Useful for iterating over a triangle mesh.
Declaration
public static int NextHalfedge(int he)
Parameters
| Type | Name | Description |
|---|---|---|
| int | he | The current halfedge index. Should be non-negative. |
Returns
| Type | Description |
|---|---|
| int | The next halfedge index. |
Remarks
This method calculates the next halfedge index using:
he % 3 == 2 ? he - 2 : he + 1.