Track::MeshFaces::FaceGraph Struct Reference

#include <MeshFaces.h>

Inheritance diagram for Track::MeshFaces::FaceGraph:

Track::MeshFaces::Face List of all members.

Public Member Functions

 FaceGraph ()
 FaceGraph (const Face &face)
void set_conversions ()
 Set conversion matrixes, Lines and Planes from face_normal, edges, and vertex_positions.
btVector3 to_face_coords (btVector3 world_coords) const
 convert a world space vector to face coordinates.
btVector3 to_world_coords (btVector3 face_coords) const
 convert a face coordinate vector to world space.
btVector3 find_nearest_point (btVector3 position) const
 Find the nearest point on the face to a world space vector in world space.

Public Attributes

btVector3 face_centre
 World coordinates of the average position of the vertices.
btVector3 face_normal
 World space normal of the face.
btVector3 vertex_positions [3]
btVector3 edges [2]
 World space vector from fv1 to fv2 and from fv1 to fv3.
btMatrix3x3 world_to_face
 Matrix to convert world coordinates into face coordinates.
btMatrix3x3 face_to_world
 Matrix to convert face coordinates into world coordinates.
Plane edge_planes [3]
 Plane including one of the edges, and the normal.
Line edge_line_segments [3]
 Edge segment for each edge.
Plane face_plane
 Plane containing the entire triangle.

Detailed Description

Definition at line 105 of file MeshFaces.h.


Constructor & Destructor Documentation

Track::MeshFaces::FaceGraph::FaceGraph (  )  [inline]

Definition at line 107 of file MeshFaces.h.

Track::MeshFaces::FaceGraph::FaceGraph ( const Face face  ) 

Definition at line 86 of file MeshFaces.cpp.


Member Function Documentation

btVector3 Track::MeshFaces::FaceGraph::find_nearest_point ( btVector3  position  )  const

Find the nearest point on the face to a world space vector in world space.

Definition at line 124 of file MeshFaces.cpp.

void Track::MeshFaces::FaceGraph::set_conversions (  ) 

Set conversion matrixes, Lines and Planes from face_normal, edges, and vertex_positions.

Definition at line 107 of file MeshFaces.cpp.

btVector3 Track::MeshFaces::FaceGraph::to_face_coords ( btVector3  world_coords  )  const

convert a world space vector to face coordinates.

Definition at line 91 of file MeshFaces.cpp.

btVector3 Track::MeshFaces::FaceGraph::to_world_coords ( btVector3  face_coords  )  const

convert a face coordinate vector to world space.

Definition at line 99 of file MeshFaces.cpp.


Member Data Documentation

Line Track::MeshFaces::FaceGraph::edge_line_segments[3]

Edge segment for each edge.

Definition at line 125 of file MeshFaces.h.

Plane Track::MeshFaces::FaceGraph::edge_planes[3]

Plane including one of the edges, and the normal.

Definition at line 123 of file MeshFaces.h.

btVector3 Track::MeshFaces::FaceGraph::edges[2]

World space vector from fv1 to fv2 and from fv1 to fv3.

Definition at line 115 of file MeshFaces.h.

btVector3 Track::MeshFaces::FaceGraph::face_centre

World coordinates of the average position of the vertices.

Definition at line 110 of file MeshFaces.h.

btVector3 Track::MeshFaces::FaceGraph::face_normal

World space normal of the face.

Definition at line 112 of file MeshFaces.h.

Plane Track::MeshFaces::FaceGraph::face_plane

Plane containing the entire triangle.

Definition at line 127 of file MeshFaces.h.

btMatrix3x3 Track::MeshFaces::FaceGraph::face_to_world

Matrix to convert face coordinates into world coordinates.

Definition at line 120 of file MeshFaces.h.

btVector3 Track::MeshFaces::FaceGraph::vertex_positions[3]

Definition at line 113 of file MeshFaces.h.

btMatrix3x3 Track::MeshFaces::FaceGraph::world_to_face

Matrix to convert world coordinates into face coordinates.

Definition at line 118 of file MeshFaces.h.


The documentation for this struct was generated from the following files:
Get Racer at SourceForge.net. Fast, secure and Free Open Source software downloads

Generated at Mon Sep 6 00:41:18 2010 by Doxygen version 1.4.7 for Racer version svn335.