Defines
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.

Defines

#define PLANES_PRIM(prim_index, flag)
 Planes-triangle test.
#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.


Define 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)           \
        }

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);

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;                                                                                                                                                                                 \
        }

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 Thu Apr 11 2019 03:30:20