Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
IndexedTriangle Class Reference

#include <IceIndexedTriangle.h>

Public Member Functions

inline_ IndexedTriangle ()
 Constructor. More...
 
inline_ IndexedTriangle (udword r0, udword r1, udword r2)
 Constructor. More...
 
inline_ IndexedTriangle (const IndexedTriangle &triangle)
 Copy constructor. More...
 
inline_ ~IndexedTriangle ()
 Destructor. More...
 
void Flip ()
 
float Area (const Point *verts) const
 
float Perimeter (const Point *verts) const
 
float Compacity (const Point *verts) const
 
void Normal (const Point *verts, Point &normal) const
 
void DenormalizedNormal (const Point *verts, Point &normal) const
 
void Center (const Point *verts, Point &center) const
 
void CenteredNormal (const Point *verts, Point &normal) const
 
void RandomPoint (const Point *verts, Point &random) const
 
bool IsVisible (const Point *verts, const Point &source) const
 
bool BackfaceCulling (const Point *verts, const Point &source) const
 
float ComputeOcclusionPotential (const Point *verts, const Point &view) const
 
bool ReplaceVertex (udword oldref, udword newref)
 
bool IsDegenerate () const
 
bool HasVertex (udword ref) const
 
bool HasVertex (udword ref, udword *index) const
 
ubyte FindEdge (udword vref0, udword vref1) const
 
udword OppositeVertex (udword vref0, udword vref1) const
 
inline_ udword OppositeVertex (ubyte edgenb) const
 
void GetVRefs (ubyte edgenb, udword &vref0, udword &vref1, udword &vref2) const
 
float MinEdgeLength (const Point *verts) const
 
float MaxEdgeLength (const Point *verts) const
 
void ComputePoint (const Point *verts, float u, float v, Point &pt, udword *nearvtx=null) const
 
float Angle (const IndexedTriangle &tri, const Point *verts) const
 
inline_ Plane PlaneEquation (const Point *verts) const
 
bool Equal (const IndexedTriangle &tri) const
 

Public Attributes

udword mVRef [3]
 Vertex-references. More...
 

Detailed Description

Definition at line 16 of file IceIndexedTriangle.h.

Constructor & Destructor Documentation

inline_ IndexedTriangle::IndexedTriangle ( )
inline

Constructor.

Definition at line 20 of file IceIndexedTriangle.h.

20 {}
inline_ IndexedTriangle::IndexedTriangle ( udword  r0,
udword  r1,
udword  r2 
)
inline

Constructor.

Definition at line 22 of file IceIndexedTriangle.h.

References mVRef.

22 { mVRef[0]=r0; mVRef[1]=r1; mVRef[2]=r2; }
inline_ IndexedTriangle::IndexedTriangle ( const IndexedTriangle triangle)
inline

Copy constructor.

Definition at line 24 of file IceIndexedTriangle.h.

References mVRef.

25  {
26  mVRef[0] = triangle.mVRef[0];
27  mVRef[1] = triangle.mVRef[1];
28  mVRef[2] = triangle.mVRef[2];
29  }
inline_ IndexedTriangle::~IndexedTriangle ( )
inline

Destructor.

Definition at line 31 of file IceIndexedTriangle.h.

31 {}

Member Function Documentation

float IndexedTriangle::Angle ( const IndexedTriangle tri,
const Point verts 
) const
float IndexedTriangle::Area ( const Point verts) const
bool IndexedTriangle::BackfaceCulling ( const Point verts,
const Point source 
) const
void IndexedTriangle::Center ( const Point verts,
Point center 
) const
void IndexedTriangle::CenteredNormal ( const Point verts,
Point normal 
) const
float IndexedTriangle::Compacity ( const Point verts) const
float IndexedTriangle::ComputeOcclusionPotential ( const Point verts,
const Point view 
) const
void IndexedTriangle::ComputePoint ( const Point verts,
float  u,
float  v,
Point pt,
udword nearvtx = null 
) const
void IndexedTriangle::DenormalizedNormal ( const Point verts,
Point normal 
) const
bool IndexedTriangle::Equal ( const IndexedTriangle tri) const
ubyte IndexedTriangle::FindEdge ( udword  vref0,
udword  vref1 
) const
void IndexedTriangle::Flip ( )
void IndexedTriangle::GetVRefs ( ubyte  edgenb,
udword vref0,
udword vref1,
udword vref2 
) const
bool IndexedTriangle::HasVertex ( udword  ref) const
bool IndexedTriangle::HasVertex ( udword  ref,
udword index 
) const
bool IndexedTriangle::IsDegenerate ( ) const
bool IndexedTriangle::IsVisible ( const Point verts,
const Point source 
) const
float IndexedTriangle::MaxEdgeLength ( const Point verts) const
float IndexedTriangle::MinEdgeLength ( const Point verts) const
void IndexedTriangle::Normal ( const Point verts,
Point normal 
) const
udword IndexedTriangle::OppositeVertex ( udword  vref0,
udword  vref1 
) const
inline_ udword IndexedTriangle::OppositeVertex ( ubyte  edgenb) const
inline

Definition at line 54 of file IceIndexedTriangle.h.

References mVRef.

54 { return mVRef[2-edgenb]; }
float IndexedTriangle::Perimeter ( const Point verts) const
inline_ Plane IndexedTriangle::PlaneEquation ( const Point verts) const
inline

Definition at line 60 of file IceIndexedTriangle.h.

References mVRef.

60 { return Plane(verts[mVRef[0]], verts[mVRef[1]], verts[mVRef[2]]); }
void IndexedTriangle::RandomPoint ( const Point verts,
Point random 
) const
bool IndexedTriangle::ReplaceVertex ( udword  oldref,
udword  newref 
)

Member Data Documentation

udword IndexedTriangle::mVRef[3]

Vertex-references.

Definition at line 33 of file IceIndexedTriangle.h.

Referenced by TriangleList::AddTriangle(), IndexedTriangle(), OppositeVertex(), and PlaneEquation().


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