Archon::Raytracer::Polygon Class Reference

A convex polygon. More...

#include <raytracer/object.H>

Inheritance diagram for Archon::Raytracer::Polygon:

Inheritance graph
[legend]
Collaboration diagram for Archon::Raytracer::Polygon:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

A convex polygon.

Definition at line 243 of file object.H.


Constructor & Destructor Documentation

Archon::Raytracer::Polygon::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.

The Vector3 objects are not destroyed by the Polygon destuctor.


The documentation for this class was generated from the following files:
Generated on Sun Jul 30 22:57:03 2006 for Archon by  doxygen 1.4.4