#include <Triangle.h>
Collaboration diagram for OpenCAL::Triangle:
Public Member Functions | |
Triangle (Vertex *a, Vertex *b, Vertex *c) | |
Vertex * | getVertex (unsigned int i) |
const Vertex * | getVertex (unsigned int i) const |
const Vector3 & | getNormal () |
bool | isNormalValid () const |
const Material * | getMaterial () const |
Material * | getMaterial () |
bool | hasMaterial () const |
void | setMaterial (Material *material) |
void | invalidateNormal () |
void | calculateNormal () |
float | getArea () const |
Vector3 | getMidpoint () const |
Protected Attributes | |
Vertex * | m_vertices [3] |
Vector3 | m_normal |
bool | m_normalValid |
Material * | m_material |
Definition at line 33 of file Triangle.h.
|
<
References OpenCAL::Vertex::getPosition(). Referenced by OpenCAL::JellyBeam::constructBeam(), OpenCAL::Cloth::constructCloth(), OpenCAL::PLYLoader::loadMesh(), OpenCAL::MLoader::loadMesh(), OpenCAL::ASELoader::loadMesh(), and OpenCAL::ASCLoader::loadMesh(). Here is the call graph for this function: ![]() |
|
This functions calculates the area of the triangle, as in Rick Parent's book, at page 428
Definition at line 80 of file Triangle.cpp. References OpenCAL::Vertex::getPosition(). Here is the call graph for this function: ![]() |