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

#define ALTERNATIVE_CODE

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);
png_infop png_bytep * trans
Definition: png.h:2435
inline_ void TransformPoint(Point &dest, const Point &source, const Matrix3x3 &rot, const Point &trans)
Quickly rotates & translates a vector.
Definition: OPC_Common.h:118

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 Sat Apr 13 2019 02:14:27