My Project
rayTriangle.h
1 #ifndef TRIANGLE_INCLUDED
2 #define TRIANGLE_INCLUDED
3 #include <Util/geometry.h>
4 #include "rayShape.h"
5 #include "rayScene.h"
6 
11 class RayTriangle : public RayShape {
12  Point3D v1;
13  Point3D v2;
14  Plane3D plane;
15  void initialize(void);
16 public:
18  class RayVertex* v[3];
19 
22 
23  RayTriangle(void);
24 
30  int read(FILE* fp,int* materialIndex,RayVertex* vList,int vSize);
31 
32  void write(int indent,FILE* fp=stdout);
33 
35  // Ray-Tracing stuff //
37  double intersect(Ray3D ray,struct RayIntersectionInfo& iInfo,double mx=-1);
38 
40 
42  // OpenGL stuff //
44  void setUpOpenGL(int cplx);
45 
46  int drawOpenGL(int materialIndex);
47 };
48 #endif // TRIANGLE_INCLUDED
49 
50 
void write(int indent, FILE *fp=stdout)
Definition: rayTriangle.cpp:32
BoundingBox3D setBoundingBox(void)
Definition: rayTriangle.todo.cpp:14
int read(FILE *fp, int *materialIndex, RayVertex *vList, int vSize)
Definition: rayTriangle.cpp:10
Definition: geometry.h:421
int drawOpenGL(int materialIndex)
Definition: rayTriangle.todo.cpp:21
Definition: rayTriangle.h:11
Definition: rayScene.h:16
Definition: geometry.h:81
double intersect(Ray3D ray, struct RayIntersectionInfo &iInfo, double mx=-1)
Definition: rayTriangle.todo.cpp:11
Definition: rayScene.h:48
Definition: geometry.h:182
Definition: rayShape.h:9
class RayMaterial * material
Definition: rayTriangle.h:21
Definition: rayScene.h:28
void setUpOpenGL(int cplx)
Definition: rayTriangle.cpp:40
Definition: geometry.h:159
class RayVertex * v[3]
Definition: rayTriangle.h:18