Original Post
Hello
I am coding a KDT for my visibility test, and in general it works fine, but after read some docs about the odered vertex I noticed that my indices are all but ordered, for example.
My faces indices (using indexed triangle list) has the following indices:
167 178 165
177 166 176
165 176 166
55 56 44
45 44 56
.....
And as far as I know this could hurt the performance, so I was wondering if someone could help me with a good algorithm to remap my
faces indices in a more optimal way like for example:
0 1 2
3 2 1
3 4 5
.....
I really appreciate any help about this.
Regards,
Oscar Gracian