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

#include <triangle.h>

Collaboration diagram for Triangle:

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
 

Detailed Description

An individual triangle face in the mesh.

Member Function Documentation

◆ bounds()

Edge Triangle::bounds ( ) const

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

◆ writeByteArray()

float * Triangle::writeByteArray ( float *  p)

Write the triangle into a vertex buffer

Parameters
pA pointer into the vertex buffer. The buffer must have enough space to write the vertex.

Member Data Documentation

◆ a

Vec3<float> Triangle::a

A vertex of the triangle

◆ b

Vec3<float> Triangle::b

A vertex of the triangle

◆ c

Vec3<float> Triangle::c

A vertex of the triangle


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