Kigs Framework  Doc version 0.8
Open source multi purpose Rapid Application Development framework
Public Member Functions | Public Attributes | List of all members
Mesh::Triangle Class Reference

#include <KMesh.h>

Inherited by Mesh::C_Triangle, Mesh::F_Triangle, Mesh::G_Triangle, Mesh::S_Triangle, and Mesh::T_Triangle< textureCount >.

Public Member Functions

virtual ~Triangle ()
 destructor
 
const Triangleoperator= (Triangle &T)
 overload '=' operator for copy action
 
virtual void CopyFrom (Triangle &T)
 copy a triangle More...
 
void Load (BufferedFile *currentfile)
 read a, b and c value in a file More...
 
virtual unsigned int getSizeOf ()
 get the size of the triangle More...
 
void NormalAngle (const Point3D *VertexArray, Vector3D &Na, Vector3D &Nb, Vector3D &Nc)
 Compute the normal at triangle vertices ponderated by the angle. More...
 
void Normal (const Point3D *VertexArray, Vector3D &Na)
 Compute the normal at triangle. More...
 

Public Attributes

unsigned int a
 first indice
 
unsigned int b
 second indice
 
unsigned int c
 third indice
 

Detailed Description

Triangle structure.

Member Function Documentation

◆ CopyFrom()

void Mesh::Triangle::CopyFrom ( Triangle T)
inlinevirtual

copy a triangle

Parameters
T: triangle to copy

◆ getSizeOf()

unsigned int Mesh::Triangle::getSizeOf ( )
inlinevirtual

get the size of the triangle

Returns
the size of this instance of triangle

◆ Load()

void Mesh::Triangle::Load ( BufferedFile currentfile)

read a, b and c value in a file

Parameters
currentfile: BufferedFile to read

◆ Normal()

void Mesh::Triangle::Normal ( const Point3D *  VertexArray,
Vector3D &  Na 
)
inline

Compute the normal at triangle.

Parameters
VertexArray: list of vertice
Na: normal vector at the triangle (in/out param)

◆ NormalAngle()

void Mesh::Triangle::NormalAngle ( const Point3D *  VertexArray,
Vector3D &  Na,
Vector3D &  Nb,
Vector3D &  Nc 
)

Compute the normal at triangle vertices ponderated by the angle.

Parameters
VertexArray: list of vertice
Na: normal vector at the first triangle's vertex (in/out param)
Nb: normal vector at the second triangle's vertex (in/out param)
Nc: normal vector at the third triangle's vertex (in/out param)

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