12 #ifndef __ICEINDEXEDTRIANGLE_H__ 13 #define __ICEINDEXEDTRIANGLE_H__ 33 mVRef[0] = triangle.
mVRef[0];
34 mVRef[1] = triangle.
mVRef[1];
35 mVRef[2] = triangle.
mVRef[2];
44 float Area(
const Point* verts)
const;
45 float Perimeter(
const Point* verts)
const;
46 float Compacity(
const Point* verts)
const;
47 void Normal(
const Point* verts,
Point& normal)
const;
48 void DenormalizedNormal(
const Point* verts,
Point& normal)
const;
49 void Center(
const Point* verts,
Point& center)
const;
50 void CenteredNormal(
const Point* verts,
Point& normal)
const;
51 void RandomPoint(
const Point* verts,
Point& random)
const;
52 bool IsVisible(
const Point* verts,
const Point& source)
const;
53 bool BackfaceCulling(
const Point* verts,
const Point& source)
const;
54 float ComputeOcclusionPotential(
const Point* verts,
const Point&
view)
const;
56 bool IsDegenerate()
const;
57 bool HasVertex(
udword ref)
const;
63 float MinEdgeLength(
const Point* verts)
const;
64 float MaxEdgeLength(
const Point* verts)
const;
72 #endif // __ICEINDEXEDTRIANGLE_H__ #define null
our own NULL pointer
float Angle(const Point &u, const Point &v)
udword mVRef[3]
Vertex-references.
unsigned int udword
sizeof(udword) must be 4
inline_ Plane PlaneEquation(const Point *verts) const
unsigned char ubyte
sizeof(ubyte) must be 1
inline_ IndexedTriangle(udword r0, udword r1, udword r2)
Constructor.
inline_ IndexedTriangle(const IndexedTriangle &triangle)
Copy constructor.
inline_ IndexedTriangle()
Constructor.
inline_ udword OppositeVertex(ubyte edgenb) const
inline_ ~IndexedTriangle()
Destructor.