Commit graph

8 commits

Author SHA1 Message Date
b1c818ac20 Modernize object_sphere
Rename files objectSphere. Clean up dependencies.
2014-08-03 17:35:12 -07:00
4828cb313f Add Write methods to scene objects
Write methods are polymorphic, overridden by subclasses. There is a single operator<< for Objects that calls the right Write() method for the object. Neat.
2014-08-03 17:25:00 -07:00
79c951030d Move Stats to its own module
Move Stats to its own module and pass it around to the intersection methods to keep track of how many tests and successful intersections there are.
2014-08-02 15:21:14 -07:00
c185a24f34 Define shared_ptr<Sphere> as Sphere::Ptr 2014-07-20 16:51:58 -07:00
19aeb7b14e Update Sphere to inherit from Object
- Had to do a couple updates here to adapt to the new code style...
- Update DoesIntersect for code style and to pass back t values in the vector
instead of the float array.
2014-07-20 16:49:55 -07:00
86a9c74c1e Activate point_is_on_surface() and calculate_normal() 2013-09-10 22:32:46 -07:00
aa694e8128 Update object_sphere for C++; inherit from Shape 2013-09-10 21:04:31 -07:00
249f77e6cf Add object_sphere.h 2013-09-10 09:34:15 -07:00