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

toxic::Mesh::triangle Struct Reference

List of all members.

Public Member Functions

 triangle ()

Public Attributes

int m_mailbox_ray_id
 Id of the last ray tested against this triangle.

int m_v0
int m_v1
int m_v2
 Vertex indices.

int m_n0
int m_n1
int m_n2
 Vertex normal indices.

int m_t0
int m_t1
int m_t2
 Texture coordinate indices.

sheep::Vector3 m_geometric_normal
 Geometric normal to the triangle surface (unit-length) expressed in object space.


Constructor & Destructor Documentation

Mesh::triangle::triangle  )  [inline]
 

Definition at line 366 of file mesh.cpp.

References USE_MAILBOXES.


Member Data Documentation

sheep::Vector3 toxic::Mesh::triangle::m_geometric_normal
 

Geometric normal to the triangle surface (unit-length) expressed in object space.

Definition at line 118 of file mesh.h.

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

int toxic::Mesh::triangle::m_mailbox_ray_id [mutable]
 

Id of the last ray tested against this triangle.

Todo:
Allocate one ray id per rendering thread.

Definition at line 111 of file mesh.h.

Referenced by toxic::Mesh::octree_full_visitor::Trace().

int toxic::Mesh::triangle::m_n0
 

Definition at line 115 of file mesh.h.

Referenced by toxic::Mesh::AppendTriangle(), toxic::Mesh::finalize_geometry(), and toxic::Mesh::Intersect().

int toxic::Mesh::triangle::m_n1
 

Definition at line 115 of file mesh.h.

Referenced by toxic::Mesh::AppendTriangle(), toxic::Mesh::finalize_geometry(), and toxic::Mesh::Intersect().

int toxic::Mesh::triangle::m_n2
 

Vertex normal indices.

Definition at line 115 of file mesh.h.

Referenced by toxic::Mesh::AppendTriangle(), toxic::Mesh::finalize_geometry(), and toxic::Mesh::Intersect().

int toxic::Mesh::triangle::m_t0
 

Definition at line 116 of file mesh.h.

Referenced by toxic::Mesh::AppendTriangle(), toxic::Mesh::finalize_geometry(), and toxic::Mesh::Intersect().

int toxic::Mesh::triangle::m_t1
 

Definition at line 116 of file mesh.h.

Referenced by toxic::Mesh::AppendTriangle(), toxic::Mesh::finalize_geometry(), and toxic::Mesh::Intersect().

int toxic::Mesh::triangle::m_t2
 

Texture coordinate indices.

Definition at line 116 of file mesh.h.

Referenced by toxic::Mesh::AppendTriangle(), toxic::Mesh::finalize_geometry(), and toxic::Mesh::Intersect().

int toxic::Mesh::triangle::m_v0
 

Definition at line 114 of file mesh.h.

Referenced by toxic::Mesh::AppendTriangle(), toxic::Mesh::finalize_geometry(), toxic::Mesh::triangle_voxel_intersector::Intersect(), toxic::Mesh::octree_full_visitor::Trace(), and toxic::Mesh::octree_test_visitor::Trace().

int toxic::Mesh::triangle::m_v1
 

Definition at line 114 of file mesh.h.

Referenced by toxic::Mesh::AppendTriangle(), toxic::Mesh::finalize_geometry(), toxic::Mesh::triangle_voxel_intersector::Intersect(), toxic::Mesh::octree_full_visitor::Trace(), and toxic::Mesh::octree_test_visitor::Trace().

int toxic::Mesh::triangle::m_v2
 

Vertex indices.

Definition at line 114 of file mesh.h.

Referenced by toxic::Mesh::AppendTriangle(), toxic::Mesh::finalize_geometry(), toxic::Mesh::triangle_voxel_intersector::Intersect(), toxic::Mesh::octree_full_visitor::Trace(), and toxic::Mesh::octree_test_visitor::Trace().


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