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

Method end

Engine/source/collision/depthSortList.cpp:78–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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
lastMethod · 0.80
decrementMethod · 0.80
incrementMethod · 0.80
sizeMethod · 0.45
setSizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected