cpe::object3d Class Referenceabstract

Generic container of a shape with intersect method. More...

+ Inheritance diagram for cpe::object3d:

Public Member Functions

 object3d ()
 empty constructor More...
 
virtual ~object3d ()
 destructor More...
 
virtual bool intersect (const ray &ray_data, intersection &intersection_data) const =0
 Method to call on a generic object to get intersection with a ray. More...
 

Detailed Description

Generic container of a shape with intersect method.

Constructor & Destructor Documentation

cpe::object3d::object3d ( )

empty constructor

cpe::object3d::~object3d ( )
virtual

destructor

Member Function Documentation

virtual bool cpe::object3d::intersect ( const ray ray_data,
intersection intersection_data 
) const
pure virtual

Method to call on a generic object to get intersection with a ray.

Implemented in cpe::sphere, and cpe::plane.

Referenced by cpe::compute_first_intersection().


The documentation for this class was generated from the following files: