MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / orderVerts

Method orderVerts

Engine/source/math/util/decomposePoly.cpp:25–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25void decompTri::orderVerts()
26{
27 // Bubble sort, smallest to largest
28 U8 temp;
29
30 for (U8 i = 2; i > 0; i--)
31 {
32 for (U8 j = 0; j < i; j++)
33 {
34 if (mVertIdx[j] > mVertIdx[j + 1])
35 {
36 temp = mVertIdx[j];
37 mVertIdx[j] = mVertIdx[j + 1];
38 mVertIdx[j + 1] = temp;
39 }
40 }
41 }
42}
43
44void decompTri::setVert(U8 val, U8 idx)
45{

Callers 1

decomposeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected