Trivial class to represent a triangle with its normal
Trivial class to represent a triangle with its normal. For each triangle we store three vertex, normals and colors. Note that this is a very naive approach, we do not take into account that vertexes can be shared.Version History
- 0.2 First Release.
- 0.2s Added per vertex color and normals. Added Trivial constructor and from three points.
Triangle(Point3f const &v0, Point3f const &v1, Point3f const &v2)
Point3f v[3]
Point3f n[3]
Point3f c[3]
void CalcNormal()
bool operator < ( Triangle const & p ) const
bool operator == ( Triangle const & p ) const
Alphabetic index HTML hierarchy of classes or Java