15 lines
244 B
C
15 lines
244 B
C
|
/**
|
||
|
* 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
|
||
|
}
|
||
|
};
|