SIM_Isect::simIsectInfo Struct Reference

#include <SIM_Isect.h>

List of all members.

Public Types

enum  simIsectInfoType { NONE, PRIM_EDGE_U, PRIM_UV, POINT }

Public Member Functions

 simIsectInfo ()

Static Public Member Functions

static simIsectInfo makeNone (int obj_id, const UT_Vector3 &position)
 Named constructors.
static simIsectInfo makeEdgeU (int obj_id, const UT_Vector3 &position, int primId, int eid, fpreal u)
 Named constructors.
static simIsectInfo makePrimUV (int obj_id, const UT_Vector3 &position, int primid, fpreal u, fpreal v)
 Named constructors.
static simIsectInfo makePoint (int obj_id, const UT_Vector3 &position, int pointid)
 Named constructors.

Public Attributes

int myObjectId
 ID of object involved in the collision.
UT_Vector3 myPosition
 World-space position of deepest point of intersection.
enum
SIM_Isect::simIsectInfo::simIsectInfoType 
myType
union {
   struct {
      int   myPrimitiveId
      int   myEdgeId
      fpreal   myU
   }   myPEU
   struct {
      int   myPrimitiveId
      fpreal   myU
      fpreal   myV
   }   myPUV
   struct {
      int   myPointId
   }   myPt
}; 


Detailed Description

Information about one half of the collision (wrt one of the two entities involved)

Definition at line 29 of file SIM_Isect.h.


Member Enumeration Documentation

The following is a discriminating union describing an alternate representation of the deepest point of intersection

Enumerator:
NONE 
PRIM_EDGE_U 
PRIM_UV 
POINT 

Definition at line 39 of file SIM_Isect.h.


Constructor & Destructor Documentation

SIM_Isect::simIsectInfo::simIsectInfo (  )  [inline]

Definition at line 67 of file SIM_Isect.h.


Member Function Documentation

static simIsectInfo SIM_Isect::simIsectInfo::makeEdgeU ( int  obj_id,
const UT_Vector3 position,
int  primId,
int  eid,
fpreal  u 
) [inline, static]

Named constructors.

Definition at line 75 of file SIM_Isect.h.

static simIsectInfo SIM_Isect::simIsectInfo::makeNone ( int  obj_id,
const UT_Vector3 position 
) [inline, static]

Named constructors.

Definition at line 71 of file SIM_Isect.h.

static simIsectInfo SIM_Isect::simIsectInfo::makePoint ( int  obj_id,
const UT_Vector3 position,
int  pointid 
) [inline, static]

Named constructors.

Definition at line 94 of file SIM_Isect.h.

static simIsectInfo SIM_Isect::simIsectInfo::makePrimUV ( int  obj_id,
const UT_Vector3 position,
int  primid,
fpreal  u,
fpreal  v 
) [inline, static]

Named constructors.

Definition at line 85 of file SIM_Isect.h.


Member Data Documentation

union { ... }

Definition at line 52 of file SIM_Isect.h.

ID of object involved in the collision.

Definition at line 32 of file SIM_Isect.h.

Definition at line 63 of file SIM_Isect.h.

World-space position of deepest point of intersection.

Definition at line 35 of file SIM_Isect.h.

Definition at line 51 of file SIM_Isect.h.

The following is a discriminating union describing an alternate representation of the deepest point of intersection

Definition at line 53 of file SIM_Isect.h.

Definition at line 59 of file SIM_Isect.h.


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

Generated on Mon Jan 28 00:29:59 2013 for HDK by  doxygen 1.5.9