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:
@ -56,7 +56,7 @@ public:
|
||||
|
||||
void plInterMeshSmooth::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
|
||||
@ -153,8 +153,8 @@ void plInterMeshSmooth::FindEdges(hsTArray<plSpanHandle>& sets, hsTArray<uint16_
|
||||
|
||||
void plInterMeshSmooth::SmoothNormals(hsTArray<plSpanHandle>& sets)
|
||||
{
|
||||
hsTArray<uint16_t>* shareVtx = TRACKED_NEW hsTArray<uint16_t>[sets.GetCount()];
|
||||
hsTArray<uint16_t>* edgeVerts = TRACKED_NEW hsTArray<uint16_t>[sets.GetCount()];
|
||||
hsTArray<uint16_t>* shareVtx = new hsTArray<uint16_t>[sets.GetCount()];
|
||||
hsTArray<uint16_t>* edgeVerts = new hsTArray<uint16_t>[sets.GetCount()];
|
||||
FindEdges(sets, edgeVerts);
|
||||
|
||||
int i;
|
||||
@ -245,4 +245,4 @@ void plInterMeshSmooth::SetAngle(float degs)
|
||||
float plInterMeshSmooth::GetAngle() const
|
||||
{
|
||||
return hsRadiansToDegrees(acos(fMinNormDot));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user