Particle Universe  1.2
ParticleUniverse::Triangle Class Reference

#include <ParticleUniverseMeshSurfaceEmitter.h>

Classes

struct  PositionAndNormal
 

Public Member Functions

 Triangle (void)
 
void calculateSquareSurface (void)
 
void calculateSurfaceNormal (void)
 
void calculateEdgeNormals (void)
 
const Vector3 getRandomTrianglePosition (void)
 
const PositionAndNormal getRandomEdgePositionAndNormal (void)
 
const PositionAndNormal getRandomVertexAndNormal (void)
 

Public Attributes

Real squareSurface
 
Vector3 surfaceNormal
 
Vector3 v1
 
Vector3 v2
 
Vector3 v3
 
Vector3 vn1
 
Vector3 vn2
 
Vector3 vn3
 
Vector3 en1
 
Vector3 en2
 
Vector3 en3
 

Detailed Description

Definition of a Triangle

Constructor & Destructor Documentation

ParticleUniverse::Triangle::Triangle ( void  )
inline

Constructor

Member Function Documentation

void ParticleUniverse::Triangle::calculateEdgeNormals ( void  )

Calculate the edge normals of the 3 edges

void ParticleUniverse::Triangle::calculateSquareSurface ( void  )

Calculate the (square) surface of the triangle

void ParticleUniverse::Triangle::calculateSurfaceNormal ( void  )

Calculate the surface normal of the triangle

const PositionAndNormal ParticleUniverse::Triangle::getRandomEdgePositionAndNormal ( void  )

Determine a random position including its normal on a one of the edges

const Vector3 ParticleUniverse::Triangle::getRandomTrianglePosition ( void  )

Determine a random position on this triangle

const PositionAndNormal ParticleUniverse::Triangle::getRandomVertexAndNormal ( void  )

Determine a random vertex including its normal of this triangle

Member Data Documentation

Vector3 ParticleUniverse::Triangle::en1
Vector3 ParticleUniverse::Triangle::en2
Vector3 ParticleUniverse::Triangle::en3
Real ParticleUniverse::Triangle::squareSurface

Public attributes

Vector3 ParticleUniverse::Triangle::surfaceNormal
Vector3 ParticleUniverse::Triangle::v1
Vector3 ParticleUniverse::Triangle::v2
Vector3 ParticleUniverse::Triangle::v3
Vector3 ParticleUniverse::Triangle::vn1
Vector3 ParticleUniverse::Triangle::vn2
Vector3 ParticleUniverse::Triangle::vn3

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