Subversion Repositories gelsvn

Rev

Rev 643 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 643 Rev 653
Line 1... Line 1...
1
#include <iostream>
1
#include <iostream>
2
#include <vector>
2
#include <vector>
3
#include <algorithm>
3
#include <algorithm>
4
#include <cmath>
4
#include <cmath>
5
 
5
 
6
#include <GLGraphics/gel_glut.h>
-
 
7
#include <GLGraphics/GLViewController.h>
6
#include <GLGraphics/GLViewController.h>
-
 
7
#include <GEL/GL/glew.h>
-
 
8
#ifdef __APPLE__
-
 
9
#include <GLUT/GLUT.h>
-
 
10
#else
-
 
11
#include <GL/glut.h>
-
 
12
#endif
8
 
13
 
9
#include <CGLA/Vec2f.h>
14
#include <CGLA/Vec2f.h>
10
#include <CGLA/Vec3i.h>
15
#include <CGLA/Vec3i.h>
11
#include <CGLA/Vec3f.h>
16
#include <CGLA/Vec3f.h>
12
#include <CGLA/Vec3d.h>
17
#include <CGLA/Vec3d.h>
Line 497... Line 502...
497
 
502
 
498
    cout << "No. of triangles: " << mesh.geometry.no_faces() << endl;
503
    cout << "No. of triangles: " << mesh.geometry.no_faces() << endl;
499
  }
504
  }
500
  else
505
  else
501
  {
506
  {
502
    obj_load("../../../data/dolphins.obj", mesh);
507
    obj_load("../../data/dolphins.obj", mesh);
503
 
508
 
504
  	cout << "Computing normals" << endl;
509
  	cout << "Computing normals" << endl;
505
    mesh.compute_normals();
510
    mesh.compute_normals();
506
 
511
 
507
    //cout << "Usage: raytrace any_object.obj";
512
    //cout << "Usage: raytrace any_object.obj";