Defines
OPC_TreeCollider.cpp File Reference
#include "../CollisionPairInserter.h"
#include "Stdafx.h"
#include <iostream>
#include "OPC_BoxBoxOverlap.h"
#include "OPC_TriTriOverlap.h"
Include dependency graph for OPC_TreeCollider.cpp:

Go to the source code of this file.

Defines

#define ALTERNATIVE_CODE
 Alternative descent rules.
#define FETCH_LEAF(prim_index, imesh, rot, trans)
 Request triangle vertices from the app and transform them.
#define UPDATE_CACHE

Detailed Description

Contains code for a tree collider.

Author:
Pierre Terdiman
Date:
March, 20, 2001

Definition in file OPC_TreeCollider.cpp.


Define Documentation

Alternative descent rules.

Definition at line 476 of file OPC_TreeCollider.cpp.

#define FETCH_LEAF (   prim_index,
  imesh,
  rot,
  trans 
)
Value:
mLeafIndex = prim_index;                                                                        \
        /* Request vertices from the app */                                                     \
        VertexPointers VP;      imesh->GetTriangle(VP, prim_index);             \
        /* Transform them in a common space */                                          \
        TransformPoint(mLeafVerts[0], *VP.Vertex[0], rot, trans);       \
        TransformPoint(mLeafVerts[1], *VP.Vertex[1], rot, trans);       \
        TransformPoint(mLeafVerts[2], *VP.Vertex[2], rot, trans);

Request triangle vertices from the app and transform them.

Definition at line 693 of file OPC_TreeCollider.cpp.

#define UPDATE_CACHE
Value:
if(cache && GetContactStatus())                 \
        {                                                                               \
                cache->id0 = mPairs.GetEntry(0);        \
                cache->id1 = mPairs.GetEntry(1);        \
        }

Definition at line 330 of file OPC_TreeCollider.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