HAPI::Collision::IntersectionInfo Struct Reference

The IntersectionInfo struct contains information about an intersection point in collision detection routines. More...

#include <HAPI/IntersectionInfo.h>

List of all members.

Public Member Functions

 IntersectionInfo (const Vec3 &_point=Vec3(), const Vec3 &_normal=Vec3(), const Vec3 &_tex_coord=Vec3(), FaceType intersected_face=FRONT, int _id=-1)
 Constructor.

Public Attributes

Vec3 point
 The intersection point.
Vec3 normal
 The normal at the intersection point.
Vec3 tex_coord
 The texture coordinate at the intersection point.
FaceType face
 The face that was intersected. BACK or FRONT.
bool intersection
 True if IntersectionInfo has been used when an intersection was detected.
HAPIFloat t
 Point along a line where intersection occurs.
GeometryPrimitiveprimitive
 The primitive that was intersected.
int id
 The id of the primitive that was intersected if applicable, e.g.


Detailed Description

The IntersectionInfo struct contains information about an intersection point in collision detection routines.


Member Data Documentation

The id of the primitive that was intersected if applicable, e.g.

triangle index. -1 if no id exists.


The documentation for this struct was generated from the following file:

Generated on Fri Nov 7 10:24:34 2008 for HAPI by  doxygen 1.5.7