Nori

Intersection Struct Reference

Intersection data structure. More...

#include <mesh.h>

List of all members.

Public Member Functions

 Intersection ()
 Create an uninitialized intersection record.
Vector3f toLocal (const Vector3f &d) const
 Transform a direction vector into the local shading frame.
Vector3f toWorld (const Vector3f &d) const
 Transform a direction vector from local to world coordinates.
QString toString () const
 Return a human-readable summary of the intersection record.

Public Attributes

Point3f p
 Position of the surface intersection.
float t
 Unoccluded distance along the ray.
Point2f uv
 UV coordinates, if any.
Frame shFrame
 Shading frame (based on the shading normal)
Frame geoFrame
 Geometric frame (based on the true geometry)
const Meshmesh
 Pointer to the associated mesh.

Detailed Description

Intersection data structure.

This data structure records local information about a ray-triangle intersection. This includes the position, traveled ray distance, uv coordinates, as well as well as two local coordinate frames (one that corresponds to the true geometry, and one that is used for shading computations).

Definition at line 36 of file mesh.h.


Constructor & Destructor Documentation

Intersection::Intersection ( ) [inline]

Create an uninitialized intersection record.

Definition at line 51 of file mesh.h.


Member Function Documentation

Vector3f Intersection::toLocal ( const Vector3f d) const [inline]

Transform a direction vector into the local shading frame.

Definition at line 54 of file mesh.h.

QString Intersection::toString ( ) const

Return a human-readable summary of the intersection record.

Vector3f Intersection::toWorld ( const Vector3f d) const [inline]

Transform a direction vector from local to world coordinates.

Definition at line 59 of file mesh.h.


Member Data Documentation

Geometric frame (based on the true geometry)

Definition at line 46 of file mesh.h.

Pointer to the associated mesh.

Definition at line 48 of file mesh.h.

Position of the surface intersection.

Definition at line 38 of file mesh.h.

Shading frame (based on the shading normal)

Definition at line 44 of file mesh.h.

Unoccluded distance along the ray.

Definition at line 40 of file mesh.h.

UV coordinates, if any.

Definition at line 42 of file mesh.h.


The documentation for this struct was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines