Archon::Raytracer::Cylinder Class Reference

Inheritance diagram for Archon::Raytracer::Cylinder:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Cylinder (const Surface *surface, const CoordSystem3x3 &s)
 's' is the transformation that sends the origin centered capped unit cylinder into the generalized cylinder as it will appear in the reference coordinate system.
 ~Cylinder ()
bool intersect (const Line3 &ray, const Object *originObject, const Object::Part *originPart, double &dist, const Object::Part **=0) const
void interiorIntersect (const Line3 &ray, const Object::Part *originPart, double &dist, const Object::Part *&) const
void map (const Vector3 &point, Vector3 &normal) const
void map (const Vector3 &point, Vector3 &normal, Vector2 &texturePoint) const

Detailed Description

Definition at line 128 of file object.H.


Member Function Documentation

bool Archon::Raytracer::Cylinder::intersect const Line3 ray,
const Object originObject,
const Object::Part originPart,
double &  dist,
const Object::Part **  p = 0
const [virtual]
 

Bug:
Will return 'hit' and negative distance when ray.direction=(0.1, 0, 0) and ray.point=(0, 0, 0)

Implements Archon::Raytracer::Object.

Definition at line 137 of file object.C.

References Archon::Math::CoordSystem3x3::basis, Archon::Math::Line3::direction, and Archon::Math::Line3::point.


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