Blender  V3.3
btGImpactBvhStructs.h
Go to the documentation of this file.
1 #ifndef GIM_BOX_SET_STRUCT_H_INCLUDED
2 #define GIM_BOX_SET_STRUCT_H_INCLUDED
3 
7 /*
8 This source file is part of GIMPACT Library.
9 
10 For the latest info, see http://gimpact.sourceforge.net/
11 
12 Copyright (c) 2007 Francisco Leon Najera. C.C. 80087371.
13 email: projectileman@yahoo.com
14 
15 
16 This software is provided 'as-is', without any express or implied warranty.
17 In no event will the authors be held liable for any damages arising from the use of this software.
18 Permission is granted to anyone to use this software for any purpose,
19 including commercial applications, and to alter it and redistribute it freely,
20 subject to the following restrictions:
21 
22 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
23 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
24 3. This notice may not be removed or altered from any source distribution.
25 */
26 
28 
29 #include "btBoxCollision.h"
30 #include "btTriangleShapeEx.h"
31 #include "gim_pair.h" //for GIM_PAIR
32 
35 {
37  int m_data;
38 };
39 
42 {
43 public:
45 
46 protected:
48 
49 public:
51  {
53  }
54 
56  {
57  //skipindex is negative (internal node), triangleindex >=0 (leafnode)
58  return (m_escapeIndexOrDataIndex >= 0);
59  }
60 
62  {
63  //btAssert(m_escapeIndexOrDataIndex < 0);
65  }
66 
68  {
69  m_escapeIndexOrDataIndex = -index;
70  }
71 
73  {
74  //btAssert(m_escapeIndexOrDataIndex >= 0);
75 
77  }
78 
80  {
82  }
83 };
84 
85 #endif // GIM_BOXPRUNING_H_INCLUDED
btAABB
Axis aligned box.
#define SIMD_FORCE_INLINE
Definition: btScalar.h:280
Node Structure for trees.
SIMD_FORCE_INLINE bool isLeafNode() const
SIMD_FORCE_INLINE void setDataIndex(int index)
SIMD_FORCE_INLINE int getEscapeIndex() const
SIMD_FORCE_INLINE int getDataIndex() const
SIMD_FORCE_INLINE void setEscapeIndex(int index)
GIM_BVH_DATA is an internal GIMPACT collision structure to contain axis aligned bounding box.