#include <hit.h>
Public Member Functions | |
| void | ExtractIntersection (const Ray &ray, sheep::Point3 *point, sheep::Vector3 *geometric_normal, sheep::Vector3 *shading_normal) const |
Public Attributes | |
| const IObject * | m_object |
| Hit object. | |
| sheep::Real | m_abscissa |
| Intersection point in ray space, expressed in world space. | |
| sheep::Vector3 | m_geometric_normal |
| sheep::Vector3 | m_shading_normal |
| sheep::Real | m_u |
| Planar texture coordinates, expressed in object space. | |
| sheep::Real | m_v |
| Planar texture coordinates, expressed in object space. | |
|
||||||||||||||||||||
|
'ray' must be expressed in world space. Any of 'point', 'geometric_normal' and 'shading_normal' can be set to 0 in order to disable computation of the corresponding feature. 'point', 'geometric_normal' and 'shading_normal' are expressed in world space.
Definition at line 91 of file hit.h. Referenced by toxic::Renderer::final_gathering(), toxic::Renderer::trace(), toxic::GlobalPhotonTracer::trace_photon(), and toxic::CausticsPhotonTracer::trace_photon(). |
|
|
Intersection point in ray space, expressed in world space.
Definition at line 43 of file hit.h. Referenced by toxic::Sphere::ComputeIrradiance(), toxic::Renderer::final_gathering(), toxic::ThinLensCamera::Finalize(), toxic::Camera::Finalize(), toxic::Square::Intersect(), toxic::Sphere::Intersect(), toxic::Ring::Intersect(), toxic::Plane::Intersect(), toxic::Octree::Intersect(), toxic::Mesh::Intersect(), toxic::Cube::Intersect(), toxic::Collection::Intersect(), toxic::Octree::octree_full_visitor::octree_full_visitor(), and toxic::Octree::octree_full_visitor::Trace(). |
|
|
Geometric normal vector at intersection point, expressed in object space. Not necessarily unit-length. Definition at line 47 of file hit.h. Referenced by toxic::Sphere::ComputeIrradiance(), toxic::Square::Intersect(), toxic::Sphere::Intersect(), toxic::Ring::Intersect(), toxic::Plane::Intersect(), toxic::Mesh::Intersect(), and toxic::Cube::Intersect(). |
|
|
|
Shading normal vector at intersection point, expressed in object space. Not necessarily unit-length. Definition at line 51 of file hit.h. Referenced by toxic::Square::Intersect(), toxic::Sphere::Intersect(), toxic::Ring::Intersect(), toxic::Plane::Intersect(), toxic::Mesh::Intersect(), and toxic::Cube::Intersect(). |
|
|
Planar texture coordinates, expressed in object space.
Definition at line 54 of file hit.h. Referenced by toxic::Square::Intersect(), and toxic::Mesh::Intersect(). |
|
|
Planar texture coordinates, expressed in object space.
Definition at line 54 of file hit.h. Referenced by toxic::Square::Intersect(), and toxic::Mesh::Intersect(). |
1.3.6