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

Method end

Engine/source/collision/depthSortList.cpp:85–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83//----------------------------------------------------------------------------
84
85void DepthSortList::end()
86{
87 S32 numPoly = mPolyList.size();
88
89 if (mPolyList.last().plane.y >= -MIN_Y_DOT)
90 {
91 mIndexList.setSize(mPolyList.last().vertexStart);
92 mPolyList.decrement();
93 return;
94 }
95
96 Parent::end();
97
98 // we deleted this poly, be sure not to add anything more...
99 if (mPolyList.size()!=numPoly)
100 return;
101
102 AssertFatal(mPolyList.last().vertexCount>2,"DepthSortList::end: only two vertices in poly");
103
104 mPolyExtentsList.increment();
105 setExtents(mPolyList.last(),mPolyExtentsList.last());
106 mPolyIndexList.push_back(numPoly-1);
107}
108
109//----------------------------------------------------------------------------
110

Callers 9

extrudeFaceMethod · 0.45
findCollisionMethod · 0.45
addPointMethod · 0.45
getPolyListMethod · 0.45
emitFaceMethod · 0.45
collideMethod · 0.45
testVertexMethod · 0.45
testEdgeMethod · 0.45
inVolumeMethod · 0.45

Calls 7

endFunction · 0.85
decrementMethod · 0.80
incrementMethod · 0.80
sizeMethod · 0.45
lastMethod · 0.45
setSizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected