• Computes the edge index and flipped state in a triangle strip for the next edge after the given edge.

    Returns

    The next edgeIndexAndFlipped value specifying nextEdgeIndex and nextFlipped. If flipped == 0, nextEdgeIndex corresponds to the B-C edge relative to edgeIndex; if flipped == 1, nextEdgeIndex correspond to the A-C edge relative to edgeIndex. The nextFlipped value is equal to 1 iff vertexCIndex(edgeIndex) == vertexAIndex(nextEdgeIndex).

    Parameters

    • edgeIndexAndFlipped: number

      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.

    Returns number

Generated using TypeDoc