#include <ColdetModelPair.h>
|
int | calculateCentroidIntersection (float &cx, float &cy, float &A, float radius, std::vector< float > vx, std::vector< float > vy) |
|
int | calculateIntersection (std::vector< float > &x, std::vector< float > &y, float radius, float x1, float y1, float x2, float y2) |
|
float | calculatePolygonArea (const std::vector< float > &vx, const std::vector< float > &vy) |
|
void | calculateSectorCentroid (float &cx, float &cy, float radius, float th1, float th2) |
|
bool | checkCollision () |
|
void | clearCollisions () |
|
| ColdetModelPair () |
|
| ColdetModelPair (ColdetModelPtr model0, ColdetModelPtr model1, double tolerance=0) |
|
| ColdetModelPair (const ColdetModelPair &org) |
|
std::vector< collision_data > & | collisions () |
|
double | computeDistance (double *point0, double *point1) |
|
double | computeDistance (int &out_triangle0, double *out_point0, int &out_triangle1, double *out_point1) |
|
std::vector< collision_data > & | detectCollisions () |
|
bool | detectIntersection () |
|
void | enableNormalVectorCorrection (bool flag) |
|
bool | isInsideCircle (float r, float x, float y) |
|
bool | isInsideTriangle (float x, float y, const std::vector< float > &vx, const std::vector< float > &vy) |
|
int | makeCCW (std::vector< float > &vx, std::vector< float > &vy) |
|
ColdetModel * | model (int index) |
|
ColdetModelPair & | operator= (const ColdetModelPair &cmp) |
|
void | set (ColdetModelPtr model0, ColdetModelPtr model1) |
|
void | setCollisionPairInserter (CollisionPairInserterBase *inserter) |
|
double | tolerance () const |
|
IceMaths::Matrix4x4 * | transform (int index) |
|
virtual | ~ColdetModelPair () |
|
| Referenced () |
|
virtual | ~Referenced () |
|
Definition at line 29 of file ColdetModelPair.h.
◆ figType
◆ pointType
◆ ColdetModelPair() [1/3]
ColdetModelPair::ColdetModelPair |
( |
| ) |
|
◆ ColdetModelPair() [2/3]
◆ ColdetModelPair() [3/3]
◆ ~ColdetModelPair()
ColdetModelPair::~ColdetModelPair |
( |
| ) |
|
|
virtual |
◆ calculateCentroidIntersection()
int ColdetModelPair::calculateCentroidIntersection |
( |
float & |
cx, |
|
|
float & |
cy, |
|
|
float & |
A, |
|
|
float |
radius, |
|
|
std::vector< float > |
vx, |
|
|
std::vector< float > |
vy |
|
) |
| |
◆ calculateIntersection()
int ColdetModelPair::calculateIntersection |
( |
std::vector< float > & |
x, |
|
|
std::vector< float > & |
y, |
|
|
float |
radius, |
|
|
float |
x1, |
|
|
float |
y1, |
|
|
float |
x2, |
|
|
float |
y2 |
|
) |
| |
◆ calculatePolygonArea()
float ColdetModelPair::calculatePolygonArea |
( |
const std::vector< float > & |
vx, |
|
|
const std::vector< float > & |
vy |
|
) |
| |
◆ calculateSectorCentroid()
void ColdetModelPair::calculateSectorCentroid |
( |
float & |
cx, |
|
|
float & |
cy, |
|
|
float |
radius, |
|
|
float |
th1, |
|
|
float |
th2 |
|
) |
| |
◆ checkCollision()
bool hrp::ColdetModelPair::checkCollision |
( |
| ) |
|
|
inline |
◆ clearCollisions()
void hrp::ColdetModelPair::clearCollisions |
( |
| ) |
|
|
inline |
◆ collisions()
◆ computeDistance() [1/2]
double ColdetModelPair::computeDistance |
( |
double * |
point0, |
|
|
double * |
point1 |
|
) |
| |
◆ computeDistance() [2/2]
double ColdetModelPair::computeDistance |
( |
int & |
out_triangle0, |
|
|
double * |
out_point0, |
|
|
int & |
out_triangle1, |
|
|
double * |
out_point1 |
|
) |
| |
- Parameters
-
out_triangle0,out_triangle1 | Indices of the triangle pair that are originally registered by ColdeModel::setTraiangle(). |
out_point0,out_point1 | The closest points |
Definition at line 595 of file ColdetModelPair.cpp.
◆ detectCollisions()
std::vector<collision_data>& hrp::ColdetModelPair::detectCollisions |
( |
| ) |
|
|
inline |
◆ detectCollisionsSub()
std::vector< collision_data > & ColdetModelPair::detectCollisionsSub |
( |
bool |
detectAllContacts | ) |
|
|
private |
◆ detectIntersection()
bool ColdetModelPair::detectIntersection |
( |
| ) |
|
◆ detectMeshMeshCollisions()
bool ColdetModelPair::detectMeshMeshCollisions |
( |
bool |
detectAllContacts | ) |
|
|
private |
◆ detectPlaneCylinderCollisions()
bool ColdetModelPair::detectPlaneCylinderCollisions |
( |
bool |
detectAllContacts | ) |
|
|
private |
◆ detectPlaneMeshCollisions()
bool ColdetModelPair::detectPlaneMeshCollisions |
( |
bool |
detectAllContacts | ) |
|
|
private |
◆ detectSphereMeshCollisions()
bool ColdetModelPair::detectSphereMeshCollisions |
( |
bool |
detectAllContacts | ) |
|
|
private |
◆ detectSphereSphereCollisions()
bool ColdetModelPair::detectSphereSphereCollisions |
( |
bool |
detectAllContacts | ) |
|
|
private |
◆ enableNormalVectorCorrection()
void hrp::ColdetModelPair::enableNormalVectorCorrection |
( |
bool |
flag | ) |
|
|
inline |
◆ isInsideCircle()
bool hrp::ColdetModelPair::isInsideCircle |
( |
float |
r, |
|
|
float |
x, |
|
|
float |
y |
|
) |
| |
|
inline |
◆ isInsideTriangle()
bool ColdetModelPair::isInsideTriangle |
( |
float |
x, |
|
|
float |
y, |
|
|
const std::vector< float > & |
vx, |
|
|
const std::vector< float > & |
vy |
|
) |
| |
◆ makeCCW()
int ColdetModelPair::makeCCW |
( |
std::vector< float > & |
vx, |
|
|
std::vector< float > & |
vy |
|
) |
| |
◆ model()
◆ operator=()
◆ set()
◆ setCollisionPairInserter()
◆ tolerance()
double hrp::ColdetModelPair::tolerance |
( |
| ) |
const |
|
inline |
◆ transform()
◆ boxTestsCount
int hrp::ColdetModelPair::boxTestsCount |
|
private |
◆ collisionPairInserter
◆ models
◆ tolerance_
double hrp::ColdetModelPair::tolerance_ |
|
private |
◆ triTestsCount
int hrp::ColdetModelPair::triTestsCount |
|
private |
The documentation for this class was generated from the following files: