mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-21 12:49:10 +00:00
Get rid of NEW(), TRACKED_NEW, and ZERO().
This commit is contained in:
@ -60,7 +60,7 @@ public:
|
||||
|
||||
void plAccMeshSmooth::FindEdges(uint32_t maxVtxIdx, uint32_t nTris, uint16_t* idxList, hsTArray<uint16_t>& edgeVerts)
|
||||
{
|
||||
hsTArray<EdgeBin>* bins = TRACKED_NEW hsTArray<EdgeBin>[maxVtxIdx+1];
|
||||
hsTArray<EdgeBin>* bins = new hsTArray<EdgeBin>[maxVtxIdx+1];
|
||||
|
||||
hsBitVector edgeVertBits;
|
||||
// For each vert pair (edge) in idxList
|
||||
@ -161,8 +161,8 @@ void plAccMeshSmooth::FindEdges(hsTArray<plGeometrySpan*>& spans, hsTArray<uint1
|
||||
|
||||
void plAccMeshSmooth::Smooth(hsTArray<plGeometrySpan*>& spans)
|
||||
{
|
||||
hsTArray<uint16_t>* shareVtx = TRACKED_NEW hsTArray<uint16_t>[spans.GetCount()];
|
||||
hsTArray<uint16_t>* edgeVerts = TRACKED_NEW hsTArray<uint16_t>[spans.GetCount()];
|
||||
hsTArray<uint16_t>* shareVtx = new hsTArray<uint16_t>[spans.GetCount()];
|
||||
hsTArray<uint16_t>* edgeVerts = new hsTArray<uint16_t>[spans.GetCount()];
|
||||
FindEdges(spans, edgeVerts);
|
||||
|
||||
int i;
|
||||
@ -354,4 +354,4 @@ void plAccMeshSmooth::SetDistTol(float dist)
|
||||
float plAccMeshSmooth::GetDistTol() const
|
||||
{
|
||||
return sqrt(fDistTolSq);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user