|
quickplot
|
#include <triangle.h>
Public Member Functions | |
| Triangle (Vec3< float > i=0.0f, Vec3< float > j=0.0f, Vec3< float > k=0.0f) | |
| float * | writeByteArray (float *p) |
| Edge | bounds () const |
| Triangle | flip () const |
| Triangle | operator+ (const Vec3< float > &offset) const |
| Triangle | operator- (const Vec3< float > &offset) const |
Public Attributes | |
Vertices | |
The vertices of the triangle | |
| Vec3< float > | a |
| Vec3< float > | b |
| Vec3< float > | c |
An individual triangle face in the mesh.
| Edge Triangle::bounds | ( | ) | const |
find the bounding box of the triangle and return as the diagonal from min to max
| float * Triangle::writeByteArray | ( | float * | p | ) |
Write the triangle into a vertex buffer
| p | A pointer into the vertex buffer. The buffer must have enough space to write the vertex. |
| Vec3<float> Triangle::a |
A vertex of the triangle
| Vec3<float> Triangle::b |
A vertex of the triangle
| Vec3<float> Triangle::c |
A vertex of the triangle