12 #ifndef __ICETRIANGLE_H__ 13 #define __ICETRIANGLE_H__ 40 mVerts[0] = triangle.
mVerts[0];
41 mVerts[1] = triangle.
mVerts[1];
42 mVerts[2] = triangle.
mVerts[2];
52 float Perimeter()
const;
53 float Compacity()
const;
54 void Normal(
Point& normal)
const;
55 void DenormalizedNormal(
Point& normal)
const;
56 void Center(
Point& center)
const;
59 PartVal TestAgainstPlane(
const Plane& plane,
float epsilon)
const;
61 void ComputeMoment(Moment& m);
62 float MinEdgeLength()
const;
63 float MaxEdgeLength()
const;
64 void ComputePoint(
float u,
float v,
Point& pt,
udword* nearvtx=
null)
const;
65 void Inflate(
float fat_coeff,
bool constant_border);
68 #endif // __ICETRIANGLE_H__ inline_ Plane PlaneEquation() const
inline_ Triangle(const Point &p0, const Point &p1, const Point &p2)
Constructor.
#define null
our own NULL pointer
unsigned int udword
sizeof(udword) must be 4
Triangle and plane are coplanar.
Triangle intersects plane.
inline_ ~Triangle()
Destructor.
inline_ Triangle(const Triangle &triangle)
Copy constructor.
Triangle is in the negative space.
inline_ Triangle()
Constructor.
Triangle is in the positive space.