reset password
Author Message
GeorgeAria
Posts: 14
Posted 09:43 Nov 03, 2016 |

Pretty sure these should work. Sorry for the previous mistakes :p

Attachments:
GeorgeAria
Posts: 14
Posted 10:06 Nov 03, 2016 |

Mesh Constructor and Destructor code:

Mesh::Mesh()
{
    numVerts = 0;
    numNormals = 0;
    numFaces = 0;
    norm = NULL;
    pt = NULL;
    face = NULL;
}

Mesh::~Mesh()
{
    delete[] pt;
    numVerts = 0;
    delete[] norm;
    numNormals = 0;
    delete[] face;
    numFaces = 0;
}