2496
|
1 #define _CRTDBG_MAP_ALLOC
|
|
2 #include <stdlib.h>
|
|
3 #include <crtdbg.h>
|
|
4
|
|
5 #define _CRT_SECURE_NO_WARNINGS
|
|
6 #include <stdlib.h>
|
|
7
|
|
8 #include "BSPModel.h"
|
|
9
|
|
10
|
|
11
|
|
12 //----- (00478389) --------------------------------------------------------
|
|
13 void BSPModel::Release()
|
|
14 {
|
|
15 free(this->pVertices.pVertices);
|
|
16 this->pVertices.pVertices = 0;
|
|
17 free(this->pFaces);
|
|
18 this->pFaces = nullptr;
|
|
19 free(this->pFacesOrdering);
|
|
20 this->pFacesOrdering = nullptr;
|
|
21 free(this->pNodes);
|
|
22 this->pNodes = nullptr;
|
|
23 this->uNumNodes = 0;
|
|
24 this->uNumFaces = 0;
|
|
25 this->pVertices.uNumVertices = 0;
|
|
26 this->uNumConvexFaces = 0;
|
|
27 }
|