source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/vrippack-0.31/src/plyclean/Mesh.cc @ 37

Last change on this file since 37 was 37, checked in by (none), 14 years ago

Added original make3d

File size: 488 bytes
Line 
1#include <stdio.h>
2#include <stdlib.h>
3#include "Mesh.h"
4
5
6
7// Initialize the Mesh
8Mesh::Mesh()
9{
10    numVerts = 0;
11    verts = NULL;
12   
13    numTris = 0;
14    tris = NULL;
15}
16
17// Clean up the Mesh
18Mesh::~Mesh()
19{
20  // Free verts, and each vertex's pointers...
21  if (verts != NULL) {
22    for (int i = 0; i < numVerts; i++) {
23      delete [] verts[i].verts;
24      delete [] verts[i].tris;
25    }
26    delete [] verts;
27  }
28
29  // Free tris and edges
30  if (tris  != NULL) { delete [] tris;  }
31}
Note: See TracBrowser for help on using the repository browser.