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
edgeIndexAndFlippedvalue specifyingnextEdgeIndexandnextFlipped. Ifflipped == 0,nextEdgeIndexcorresponds to the B-C edge relative toedgeIndex; ifflipped == 1,nextEdgeIndexcorrespond to the A-C edge relative toedgeIndex. ThenextFlippedvalue is equal to 1 iffvertexCIndex(edgeIndex) == vertexAIndex(nextEdgeIndex).