Defines
OPC_VolumeCollider.cpp File Reference
#include "Stdafx.h"
Include dependency graph for OPC_VolumeCollider.cpp:

Go to the source code of this file.

Defines

#define IMPLEMENT_LEAFDUMP(type)
#define IMPLEMENT_NOLEAFDUMP(type)

Detailed Description

Contains base volume collider class.

Author:
Pierre Terdiman
Date:
June, 2, 2001

Definition in file OPC_VolumeCollider.cpp.


Define Documentation

#define IMPLEMENT_LEAFDUMP (   type)
Value:
void VolumeCollider::_Dump(const type* node)                    \
{                                                                                                               \
        if(node->IsLeaf())                                                                      \
        {                                                                                                       \
                mTouchedPrimitives->Add(node->GetPrimitive());  \
        }                                                                                                       \
        else                                                                                            \
        {                                                                                                       \
                _Dump(node->GetPos());                                                  \
                                                                                                                \
                if(ContactFound()) return;                                              \
                                                                                                                \
                _Dump(node->GetNeg());                                                  \
        }                                                                                                       \
}

Definition at line 82 of file OPC_VolumeCollider.cpp.

#define IMPLEMENT_NOLEAFDUMP (   type)
Value:
void VolumeCollider::_Dump(const type* node)                                                                    \
{                                                                                                                                                               \
        if(node->HasPosLeaf())  mTouchedPrimitives->Add(node->GetPosPrimitive());       \
        else                                    _Dump(node->GetPos());                                                          \
                                                                                                                                                                \
        if(ContactFound()) return;                                                                                                      \
                                                                                                                                                                \
        if(node->HasNegLeaf())  mTouchedPrimitives->Add(node->GetNegPrimitive());       \
        else                                    _Dump(node->GetNeg());                                                          \
}

Definition at line 70 of file OPC_VolumeCollider.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