Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

toxic::Mesh::octree_test_visitor Struct Reference

List of all members.

Public Member Functions

 octree_test_visitor (const vertex_vector &vertices, const Context &context, const Ray &ray)
bool Trace (const octree_node *node, sheep::Real t0, sheep::Real t1)

Public Attributes

const vertex_vectorm_vertices
const Contextm_context
const Raym_ray
bool m_found

Detailed Description

This visitor is invoked by the Mesh::Intersect() method when the hit parameter is 0 (null). It is aimed at testing whether the ray touches an object in the octree or not. It does not search for the nearest object and it does not compute the intersection distance.

Definition at line 149 of file mesh.h.


Constructor & Destructor Documentation

Mesh::octree_test_visitor::octree_test_visitor const vertex_vector vertices,
const Context context,
const Ray ray
[inline]
 

Definition at line 389 of file mesh.cpp.

References toxic::Mesh::vertex_vector.


Member Function Documentation

bool Mesh::octree_test_visitor::Trace const octree_node node,
sheep::Real  t0,
sheep::Real  t1
 

Definition at line 399 of file mesh.cpp.

References toxic::intersect_triangle(), m_found, sheep::OctreeNode< const triangle * >::m_items, m_ray, toxic::Mesh::triangle::m_v0, toxic::Mesh::triangle::m_v1, toxic::Mesh::triangle::m_v2, and toxic::Mesh::octree_node.


Member Data Documentation

const Context& toxic::Mesh::octree_test_visitor::m_context
 

Definition at line 151 of file mesh.h.

bool toxic::Mesh::octree_test_visitor::m_found
 

Definition at line 153 of file mesh.h.

Referenced by toxic::Mesh::Intersect(), and Trace().

const Ray& toxic::Mesh::octree_test_visitor::m_ray
 

Definition at line 152 of file mesh.h.

Referenced by Trace().

const vertex_vector& toxic::Mesh::octree_test_visitor::m_vertices
 

Definition at line 150 of file mesh.h.


The documentation for this struct was generated from the following files:
Generated on Tue May 11 01:31:57 2004 for toxic by doxygen 1.3.6