Goz
09-02-2005, 02:54 AM
I need to reverse the winding order of an arbitrary length tri-strip. Is there an elegant way to do this?
I though, initially, that i might be able to do it by swapping the 2nd and 3rd vertex indices over but this, unfortunately, breaks the triangle AFTER the next one.
So i considered reversing the tri-strip but this only works for an odd number of triangles ...
Is there an actual way of doing it? Or is it not possible?
Note: I am NOT using DirectX or OpenGL ... degenerates are NOT supported so please don't suggest that. I want to take an arbitrary strip with verts v1, v2, v3 ... vn and reverse its winding order without adding any extra vertices. Is it possible?
I though, initially, that i might be able to do it by swapping the 2nd and 3rd vertex indices over but this, unfortunately, breaks the triangle AFTER the next one.
So i considered reversing the tri-strip but this only works for an odd number of triangles ...
Is there an actual way of doing it? Or is it not possible?
Note: I am NOT using DirectX or OpenGL ... degenerates are NOT supported so please don't suggest that. I want to take an arbitrary strip with verts v1, v2, v3 ... vn and reverse its winding order without adding any extra vertices. Is it possible?