quickplot
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Quad Class Reference

#include <triangle.h>

Collaboration diagram for Quad:

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, TriangleasTriangles () const
 

Public Attributes

Vertices

The vertices of the quad

Vec3< float > a
 
Vec3< float > b
 
Vec3< float > c
 
Vec3< float > d
 

Detailed Description

An individual quad face in the mesh.

Member Function Documentation

◆ bounds()

Edge Quad::bounds ( ) const

find the bounding box of the triangle and return as the diagonal from min to max

◆ writeByteArray()

float * Quad::writeByteArray ( float *  p)

Write the quad into a vertex buffer

Parameters
pA pointer into the vertex buffer. The buffer must have enough space to write six 3-vectors of floats.

Member Data Documentation

◆ a

Vec3<float> Quad::a

A vertex of the quad

◆ b

Vec3<float> Quad::b

A vertex of the quad

◆ c

Vec3<float> Quad::c

A vertex of the quad

◆ d

Vec3<float> Quad::d

A vertex of the quad


The documentation for this class was generated from the following files: