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 with 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.
- 0.4 Changed internal storing of coords, color and normals, now a triangle is just three vertex
Triangle(Point3f const &v0, Point3f const &v1, Point3f const &v2)
Vertex v[3]
void CalcNormal()
void Flip()
bool operator < ( Triangle const & p ) const
bool operator == ( Triangle const & p ) const
Alphabetic index HTML hierarchy of classes or Java