mpri-graphics-project/common_structures.hpp

15 lines
244 B
C++
Raw Normal View History

/**
* Defines a few widely used, widely spread structures. Imported pervasively.
**/
struct Point {
double x, y, z;
};
struct Face {
int vert[3];
int operator[](unsigned i) {
return vert[i % 3]; // dodge errors
}
};