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

Method formTriFromEdges

Engine/source/math/util/decomposePoly.cpp:206–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206decompTri decompPoly::formTriFromEdges(U8 idx1, U8 idx2)
207{
208 decompTri tri;
209
210 tri.setVert(mEdgeList[idx1].i1, 0);
211 tri.setVert(mEdgeList[idx1].i2, 1);
212
213 if(mEdgeList[idx2].i1 == tri.getVert(0) || mEdgeList[idx2].i1 == tri.getVert(1))
214 {
215 tri.setVert(mEdgeList[idx2].i2, 2);
216 }
217 else
218 {
219 tri.setVert(mEdgeList[idx2].i1, 2);
220 }
221
222 return tri;
223}
224
225twoIndices decompPoly::leftmostInsideVerts(U8 idx1, U8 idx2)
226{

Callers

nothing calls this directly

Calls 2

setVertMethod · 0.80
getVertMethod · 0.80

Tested by

no test coverage detected