#include <IceTriangle.h>
Public Member Functions | |
float | Area () const |
void | Center (Point ¢er) const |
float | Compacity () const |
void | ComputeMoment (Moment &m) |
void | ComputePoint (float u, float v, Point &pt, udword *nearvtx=null) const |
void | DenormalizedNormal (Point &normal) const |
void | Flip () |
void | Inflate (float fat_coeff, bool constant_border) |
float | MaxEdgeLength () const |
float | MinEdgeLength () const |
void | Normal (Point &normal) const |
float | Perimeter () const |
inline_ Plane | PlaneEquation () const |
PartVal | TestAgainstPlane (const Plane &plane, float epsilon) const |
inline_ | Triangle () |
Constructor. | |
inline_ | Triangle (const Point &p0, const Point &p1, const Point &p2) |
Constructor. | |
inline_ | Triangle (const Triangle &triangle) |
Copy constructor. | |
inline_ | ~Triangle () |
Destructor. | |
Public Attributes | |
Point | mVerts [3] |
Vertices. |
Contains an indexed triangle class.
Definition at line 30 of file IceTriangle.h.
inline_ Triangle::Triangle | ( | ) | [inline] |
Constructor.
Definition at line 34 of file IceTriangle.h.
Constructor.
Definition at line 36 of file IceTriangle.h.
inline_ Triangle::Triangle | ( | const Triangle & | triangle | ) | [inline] |
Copy constructor.
Definition at line 38 of file IceTriangle.h.
inline_ Triangle::~Triangle | ( | ) | [inline] |
Destructor.
Definition at line 45 of file IceTriangle.h.
float Triangle::Area | ( | ) | const |
void Triangle::Center | ( | Point & | center | ) | const |
Computes the triangle center.
center | [out] the computed center |
Definition at line 127 of file IceTriangle.cpp.
float Triangle::Compacity | ( | ) | const |
Computes the triangle compacity.
Definition at line 86 of file IceTriangle.cpp.
void Triangle::ComputeMoment | ( | Moment & | m | ) |
void Triangle::ComputePoint | ( | float | u, |
float | v, | ||
Point & | pt, | ||
udword * | nearvtx = null |
||
) | const |
Computes a point on the triangle according to the stabbing information.
u,v | [in] point's barycentric coordinates |
pt | [out] point on triangle |
nearvtx | [out] index of nearest vertex |
Definition at line 251 of file IceTriangle.cpp.
void Triangle::DenormalizedNormal | ( | Point & | normal | ) | const |
Computes the triangle denormalized normal.
normal | [out] the computed normal |
Definition at line 113 of file IceTriangle.cpp.
void Triangle::Flip | ( | ) |
Flips the winding order.
Definition at line 43 of file IceTriangle.cpp.
void Triangle::Inflate | ( | float | fat_coeff, |
bool | constant_border | ||
) |
Definition at line 269 of file IceTriangle.cpp.
float Triangle::MaxEdgeLength | ( | ) | const |
Computes the triangle's largest edge length.
Definition at line 231 of file IceTriangle.cpp.
float Triangle::MinEdgeLength | ( | ) | const |
Computes the triangle moment.
m | [out] the moment Computes the triangle's smallest edge length. |
Definition at line 213 of file IceTriangle.cpp.
void Triangle::Normal | ( | Point & | normal | ) | const |
Computes the triangle normal.
normal | [out] the computed normal |
Definition at line 99 of file IceTriangle.cpp.
float Triangle::Perimeter | ( | ) | const |
Computes the triangle perimeter.
Definition at line 70 of file IceTriangle.cpp.
inline_ Plane Triangle::PlaneEquation | ( | ) | const [inline] |
Definition at line 57 of file IceTriangle.h.
PartVal Triangle::TestAgainstPlane | ( | const Plane & | plane, |
float | epsilon | ||
) | const |
Definition at line 135 of file IceTriangle.cpp.
Vertices.
Definition at line 47 of file IceTriangle.h.