Beispiel #1
0
//- Read from file
triSurf::triSurf(const fileName& fName)
:
    triSurfPoints(),
    triSurfFacets(),
    triSurfFeatureEdges(),
    triSurfAddressing(triSurfPoints::points_, triSurfFacets::triangles_)
{
    readSurface(fName);
}
Surface::Surface(string inputFile)
{

  time_faces = 0;
  time_edges = 0;
  time_point=0;
  failed_collapses = 0;
  timespec t0, t1, t;
  clock_gettime(CLOCK_REALTIME, &t0);
  readSurface(inputFile);
  clock_gettime(CLOCK_REALTIME, &t1);
  t = diff(t0,t1);
  cout << greentty << "Time_read_input_and_init_data: " << t.tv_sec*1000 + t.tv_nsec/1000000 << deftty << endl;
}
Beispiel #3
0
 GLTexture2D(const Surface& surface) { readSurface(surface); }