Can someone help me with a quick formula or even a short explanation on how I would determine the order of vertexes in a 3D space. I’d like to do this so that I can reorder all my vertexes to be in counter clockwise order.
for a little more explanation if needed, I am only using triangles, so I only have 3 points for each triangle which I would like to reorder.
So if I have (0,0,0), (1,0,0) and (1,1,0). How can I make sure they go in the right order as above or one of the other 2 possibilities and not in the wrong order such as (1,1,0) (1,0,0) (0,0,0) or (1,0,0) (0,0,0) (1,1,0).