#include <raytracer/object.H>
Inheritance diagram for Archon::Raytracer::Polygon:
Public Member Functions | |
Polygon (const Surface *surface, const vector< Vector3 * > &vertexList, const Vector2 &textureVertex1, const Vector2 &textureVertex2) | |
Constructors: Vertices must be given in a counter clockwise order when the polygon is seen from the outside. | |
Polygon (const Surface *surface, const vector< Vector3 * > &vertexList, const Vector2 &textureVertex1, const Vector2 &textureVertex2, const Vector2 &textureVertex3) | |
~Polygon () | |
bool | intersect (const Line3 &ray, const Object *originObject, const Object::Part *originPart, double &dist, const Object::Part **=0) const |
bool | backfaceIntersect (const Line3 &ray, const Object *originObject, const Object::Part *originPart, double &dist, const Object::Part **=0) const |
void | map (const Vector3 &point, Vector3 &normal) const |
void | map (const Vector3 &point, Vector3 &normal, Vector2 &texturePoint) const |
Definition at line 243 of file object.H.
|
Constructors: Vertices must be given in a counter clockwise order when the polygon is seen from the outside. The Vector3 objects are not destroyed by the Polygon destuctor. |