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

Macros

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

Detailed Description

Contains code for a tree collider.

Author
Pierre Terdiman
Date
March, 20, 2001

Definition in file OPC_TreeCollider.cpp.

Macro Definition Documentation

◆ ALTERNATIVE_CODE

#define ALTERNATIVE_CODE

Alternative descent rules.

Definition at line 476 of file OPC_TreeCollider.cpp.

◆ FETCH_LEAF

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

◆ UPDATE_CACHE

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

trans
png_infop png_bytep * trans
Definition: png.h:2432


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Wed Sep 7 2022 02:51:05