#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. More... | |
inline_ | Triangle (const Point &p0, const Point &p1, const Point &p2) |
Constructor. More... | |
inline_ | Triangle (const Triangle &triangle) |
Copy constructor. More... | |
inline_ | ~Triangle () |
Destructor. More... | |
Public Attributes | |
Point | mVerts [3] |
Vertices. More... | |
Contains an indexed triangle class.
Definition at line 30 of file IceTriangle.h.
|
inline |
Constructor.
Definition at line 34 of file IceTriangle.h.
Constructor.
Definition at line 36 of file IceTriangle.h.
Copy constructor.
Definition at line 38 of file IceTriangle.h.
|
inline |
Destructor.
Definition at line 45 of file IceTriangle.h.
float Triangle::Area | ( | ) | 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 | ) |
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.
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.
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.
Definition at line 57 of file IceTriangle.h.
Definition at line 135 of file IceTriangle.cpp.
Point Triangle::mVerts[3] |
Vertices.
Definition at line 47 of file IceTriangle.h.