#include "T2.h"
class CFace
{
public:
CFace();
virtual ~CFace();
void SetEN(int);
public:
int En;//面的边数
int* p;//面的顶点号
CT2* ptTexture;//顶点纹理数组
};
#include "Face.h"
CFace::CFace()
{
p = NULL;
}
CFace::~CFace()
{
if (p)
{
delete[] p;
p = NULL;
}
if (ptTexture) {
delete[] ptTexture;
ptTexture = NULL;
}
}
void CFace::SetEN(int en)
{
En = en;
p = new int[En];
ptTexture = new CT2[En];
}