Macros
OPC_PlanesCollider.cpp File Reference
#include "Stdafx.h"
#include "OPC_PlanesAABBOverlap.h"
#include "OPC_PlanesTriOverlap.h"
Include dependency graph for OPC_PlanesCollider.cpp:

Go to the source code of this file.

Macros

#define PLANES_PRIM(prim_index, flag)
 Planes-triangle test. More...
 
#define SET_CONTACT(prim_index, flag)
 
#define TEST_CLIP_MASK
 

Detailed Description

Contains code for a planes collider.

Author
Pierre Terdiman
Date
January, 1st, 2002

Definition in file OPC_PlanesCollider.cpp.

Macro Definition Documentation

#define PLANES_PRIM (   prim_index,
  flag 
)
Value:
/* Request vertices from the app */ \
mIMesh->GetTriangle(mVP, prim_index); \
/* Perform triangle-box overlap test */ \
if(PlanesTriOverlap(clip_mask)) \
{ \
SET_CONTACT(prim_index, flag) \
}
#define SET_CONTACT(prim_index, flag)
png_infop png_uint_32 flag
Definition: png.h:2159

Planes-triangle test.

Definition at line 44 of file OPC_PlanesCollider.cpp.

#define SET_CONTACT (   prim_index,
  flag 
)
Value:
/* Set contact status */ \
mFlags |= flag; \
mTouchedPrimitives->Add(prim_index);
png_infop png_uint_32 flag
Definition: png.h:2159

Definition at line 38 of file OPC_PlanesCollider.cpp.

#define TEST_CLIP_MASK
Value:
/* If the box is completely included, so are its children. We don't need to do extra tests, we */ \
/* can immediately output a list of visible children. Those ones won't need to be clipped. */ \
if(!OutClipMask) \
{ \
/* Set contact status */ \
mFlags |= OPC_CONTACT; \
_Dump(node); \
return; \
}
Final contact status after a collision query.
Definition: OPC_Collider.h:27

Definition at line 260 of file OPC_PlanesCollider.cpp.



openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Sat Apr 13 2019 02:14:27