Bits 0,1 specify the edgeIndex
in the range [0, 2]
corresponding
to the last edge that was traversed. Bit 2 specifies the flipped
state. If flipped
is
equal to 0, the last two emitted vertices are B and C relative to edgeIndex
. If flipped
is equal to 1, the last two emitted vertices are A and C relative to edgeIndex
.
Generated using TypeDoc
Computes the edge index and flipped state in a triangle strip for the next edge after the given edge.
Returns
The next
edgeIndexAndFlipped
value specifyingnextEdgeIndex
andnextFlipped
. Ifflipped == 0
,nextEdgeIndex
corresponds to the B-C edge relative toedgeIndex
; ifflipped == 1
,nextEdgeIndex
correspond to the A-C edge relative toedgeIndex
. ThenextFlipped
value is equal to 1 iffvertexCIndex(edgeIndex) == vertexAIndex(nextEdgeIndex)
.