590f10a756
Updates for Plane
2014-08-09 10:58:30 -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
f03945c0f7
Always return the normal, even if the point isn't in the plane
...
Getting so much closer!
2014-08-02 15:40:24 -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
1a5a46c468
Use NearZero in plane intersection calculations
...
Also clean up the "point on surface" logic and remove the normal flipping (doesn't make sense without a ray origin anyway).
2014-08-02 14:12:01 -07:00
0d6a238b44
Clean up some implementation header comments
2014-08-02 10:40:41 -07:00
662867f529
Return the appropriate normal
...
I'm not actually sure this is necessary...
2014-08-02 10:39:56 -07:00
20b88f6dac
Clarify some notation in plane intersection
2014-08-02 10:39:29 -07:00
6ddd47fe64
Redo planes in normal-distance form
...
This is how POV-Ray does it. This is how The Book does it. I'm just going along for the ride… :) But seriously, it seems to make some things easier.
2014-08-02 10:00:54 -07:00
c80a6e9ac7
Rename object_plane -> objectPlane
2014-08-02 09:26:22 -07:00