Merge branch 'Branch_2.86.1'
This commit is contained in:
@@ -235,23 +235,6 @@ public:
|
|||||||
btAABB()
|
btAABB()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
bool operator<(const btAABB& obj) const {
|
|
||||||
return
|
|
||||||
m_min < obj.m_min &&
|
|
||||||
m_max < obj.m_max;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool operator>(const btAABB& obj) const {
|
|
||||||
return
|
|
||||||
m_min > obj.m_min &&
|
|
||||||
m_max > obj.m_max;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool operator==(const btAABB& obj) const {
|
|
||||||
return
|
|
||||||
m_min == obj.m_min &&
|
|
||||||
m_max == obj.m_max;
|
|
||||||
}
|
|
||||||
|
|
||||||
btAABB(const btVector3 & V1,
|
btAABB(const btVector3 & V1,
|
||||||
const btVector3 & V2,
|
const btVector3 & V2,
|
||||||
|
|||||||
@@ -35,25 +35,6 @@ struct GIM_PAIR
|
|||||||
{
|
{
|
||||||
int m_index1;
|
int m_index1;
|
||||||
int m_index2;
|
int m_index2;
|
||||||
|
|
||||||
bool operator<(const GIM_PAIR& obj) const {
|
|
||||||
return
|
|
||||||
m_index1 < obj.m_index1 &&
|
|
||||||
m_index2 < obj.m_index2;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool operator>(const GIM_PAIR& obj) const {
|
|
||||||
return
|
|
||||||
m_index1 > obj.m_index1 &&
|
|
||||||
m_index2 > obj.m_index2;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool operator==(const GIM_PAIR& obj) const {
|
|
||||||
return
|
|
||||||
m_index1 == obj.m_index1 &&
|
|
||||||
m_index2 == obj.m_index2;
|
|
||||||
}
|
|
||||||
|
|
||||||
GIM_PAIR()
|
GIM_PAIR()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
@@ -75,24 +56,6 @@ struct GIM_BVH_DATA
|
|||||||
{
|
{
|
||||||
btAABB m_bound;
|
btAABB m_bound;
|
||||||
int m_data;
|
int m_data;
|
||||||
|
|
||||||
bool operator<(const GIM_BVH_DATA& obj) const {
|
|
||||||
return
|
|
||||||
m_bound < obj.m_bound &&
|
|
||||||
m_data < obj.m_data;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool operator>(const GIM_BVH_DATA& obj) const {
|
|
||||||
return
|
|
||||||
m_bound > obj.m_bound &&
|
|
||||||
m_data > obj.m_data;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool operator==(const GIM_BVH_DATA& obj) const {
|
|
||||||
return
|
|
||||||
m_bound == obj.m_bound &&
|
|
||||||
m_data == obj.m_data;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
//! Node Structure for trees
|
//! Node Structure for trees
|
||||||
@@ -103,25 +66,6 @@ public:
|
|||||||
protected:
|
protected:
|
||||||
int m_escapeIndexOrDataIndex;
|
int m_escapeIndexOrDataIndex;
|
||||||
public:
|
public:
|
||||||
|
|
||||||
bool operator<(const GIM_BVH_TREE_NODE& obj) const {
|
|
||||||
return
|
|
||||||
m_bound < obj.m_bound &&
|
|
||||||
m_escapeIndexOrDataIndex < obj.m_escapeIndexOrDataIndex;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool operator>(const GIM_BVH_TREE_NODE& obj) const {
|
|
||||||
return
|
|
||||||
m_bound > obj.m_bound &&
|
|
||||||
m_escapeIndexOrDataIndex > obj.m_escapeIndexOrDataIndex;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool operator==(const GIM_BVH_TREE_NODE& obj) const {
|
|
||||||
return
|
|
||||||
m_bound == obj.m_bound &&
|
|
||||||
m_escapeIndexOrDataIndex == obj.m_escapeIndexOrDataIndex;
|
|
||||||
}
|
|
||||||
|
|
||||||
GIM_BVH_TREE_NODE()
|
GIM_BVH_TREE_NODE()
|
||||||
{
|
{
|
||||||
m_escapeIndexOrDataIndex = 0;
|
m_escapeIndexOrDataIndex = 0;
|
||||||
|
|||||||
@@ -19,11 +19,6 @@
|
|||||||
fprintf(stderr, __VA_ARGS__); \
|
fprintf(stderr, __VA_ARGS__); \
|
||||||
} while (0)
|
} while (0)
|
||||||
/// print warning message with file/line information
|
/// print warning message with file/line information
|
||||||
#define warning_message(...) \
|
|
||||||
do { \
|
|
||||||
fprintf(stderr, "[Warning:%s:%d] ", __INVDYN_FILE_WO_DIR__, __LINE__); \
|
|
||||||
fprintf(stderr, __VA_ARGS__); \
|
|
||||||
} while (0)
|
|
||||||
#define warning_message(...) \
|
#define warning_message(...) \
|
||||||
do { \
|
do { \
|
||||||
fprintf(stderr, "[Warning:%s:%d] ", __INVDYN_FILE_WO_DIR__, __LINE__); \
|
fprintf(stderr, "[Warning:%s:%d] ", __INVDYN_FILE_WO_DIR__, __LINE__); \
|
||||||
|
|||||||
Reference in New Issue
Block a user