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