Blender V5.0
GIM_TREE_TREE_COLLIDER< BOX_SET_CLASS0, BOX_SET_CLASS1 > Class Template Reference

GIM_BOX_SET collision methods. More...

#include <gim_box_set.h>

Public Member Functions

 GIM_TREE_TREE_COLLIDER ()
void find_collision (BOX_SET_CLASS0 *boxset1, const btTransform &trans1, BOX_SET_CLASS1 *boxset2, const btTransform &trans2, gim_pair_set &collision_pairs, bool complete_primitive_tests=true)

Public Attributes

gim_pair_setm_collision_pairs
BOX_SET_CLASS0 * m_boxset0
BOX_SET_CLASS1 * m_boxset1
GUINT current_node0
GUINT current_node1
bool node0_is_leaf
bool node1_is_leaf
bool t0_is_trimesh
bool t1_is_trimesh
bool node0_has_triangle
bool node1_has_triangle
GIM_AABB m_box0
GIM_AABB m_box1
GIM_BOX_BOX_TRANSFORM_CACHE trans_cache_1to0
btTransform trans_cache_0to1
GIM_TRIANGLE m_tri0
btVector4 m_tri0_plane
GIM_TRIANGLE m_tri1
btVector4 m_tri1_plane

Protected Member Functions

SIMD_FORCE_INLINE void retrieve_node0_triangle (GUINT node0)
SIMD_FORCE_INLINE void retrieve_node1_triangle (GUINT node1)
SIMD_FORCE_INLINE void retrieve_node0_info (GUINT node0)
SIMD_FORCE_INLINE void retrieve_node1_info (GUINT node1)
SIMD_FORCE_INLINE bool node_collision (GUINT node0, GUINT node1)
void find_collision_pairs ()

Detailed Description

template<typename BOX_SET_CLASS0, typename BOX_SET_CLASS1>
class GIM_TREE_TREE_COLLIDER< BOX_SET_CLASS0, BOX_SET_CLASS1 >

GIM_BOX_SET collision methods.

Definition at line 433 of file gim_box_set.h.

Constructor & Destructor Documentation

◆ GIM_TREE_TREE_COLLIDER()

template<typename BOX_SET_CLASS0, typename BOX_SET_CLASS1>
GIM_TREE_TREE_COLLIDER< BOX_SET_CLASS0, BOX_SET_CLASS1 >::GIM_TREE_TREE_COLLIDER ( )
inline

Definition at line 457 of file gim_box_set.h.

References current_node0, current_node1, and G_UINT_INFINITY.

Member Function Documentation

◆ find_collision()

template<typename BOX_SET_CLASS0, typename BOX_SET_CLASS1>
void GIM_TREE_TREE_COLLIDER< BOX_SET_CLASS0, BOX_SET_CLASS1 >::find_collision ( BOX_SET_CLASS0 * boxset1,
const btTransform & trans1,
BOX_SET_CLASS1 * boxset2,
const btTransform & trans2,
gim_pair_set & collision_pairs,
bool complete_primitive_tests = true )
inline

◆ find_collision_pairs()

template<typename BOX_SET_CLASS0, typename BOX_SET_CLASS1>
void GIM_TREE_TREE_COLLIDER< BOX_SET_CLASS0, BOX_SET_CLASS1 >::find_collision_pairs ( )
inlineprotected

◆ node_collision()

template<typename BOX_SET_CLASS0, typename BOX_SET_CLASS1>
SIMD_FORCE_INLINE bool GIM_TREE_TREE_COLLIDER< BOX_SET_CLASS0, BOX_SET_CLASS1 >::node_collision ( GUINT node0,
GUINT node1 )
inlineprotected

◆ retrieve_node0_info()

template<typename BOX_SET_CLASS0, typename BOX_SET_CLASS1>
SIMD_FORCE_INLINE void GIM_TREE_TREE_COLLIDER< BOX_SET_CLASS0, BOX_SET_CLASS1 >::retrieve_node0_info ( GUINT node0)
inlineprotected

Definition at line 490 of file gim_box_set.h.

References current_node0, GUINT, m_box0, m_boxset0, node0_has_triangle, node0_is_leaf, and SIMD_FORCE_INLINE.

Referenced by node_collision().

◆ retrieve_node0_triangle()

template<typename BOX_SET_CLASS0, typename BOX_SET_CLASS1>
SIMD_FORCE_INLINE void GIM_TREE_TREE_COLLIDER< BOX_SET_CLASS0, BOX_SET_CLASS1 >::retrieve_node0_triangle ( GUINT node0)
inlineprotected

◆ retrieve_node1_info()

template<typename BOX_SET_CLASS0, typename BOX_SET_CLASS1>
SIMD_FORCE_INLINE void GIM_TREE_TREE_COLLIDER< BOX_SET_CLASS0, BOX_SET_CLASS1 >::retrieve_node1_info ( GUINT node1)
inlineprotected

Definition at line 499 of file gim_box_set.h.

References current_node1, GUINT, m_box1, m_boxset1, node1_has_triangle, node1_is_leaf, and SIMD_FORCE_INLINE.

Referenced by node_collision().

◆ retrieve_node1_triangle()

template<typename BOX_SET_CLASS0, typename BOX_SET_CLASS1>
SIMD_FORCE_INLINE void GIM_TREE_TREE_COLLIDER< BOX_SET_CLASS0, BOX_SET_CLASS1 >::retrieve_node1_triangle ( GUINT node1)
inlineprotected

Member Data Documentation

◆ current_node0

template<typename BOX_SET_CLASS0, typename BOX_SET_CLASS1>
GUINT GIM_TREE_TREE_COLLIDER< BOX_SET_CLASS0, BOX_SET_CLASS1 >::current_node0

Definition at line 439 of file gim_box_set.h.

Referenced by GIM_TREE_TREE_COLLIDER(), and retrieve_node0_info().

◆ current_node1

template<typename BOX_SET_CLASS0, typename BOX_SET_CLASS1>
GUINT GIM_TREE_TREE_COLLIDER< BOX_SET_CLASS0, BOX_SET_CLASS1 >::current_node1

Definition at line 440 of file gim_box_set.h.

Referenced by GIM_TREE_TREE_COLLIDER(), and retrieve_node1_info().

◆ m_box0

template<typename BOX_SET_CLASS0, typename BOX_SET_CLASS1>
GIM_AABB GIM_TREE_TREE_COLLIDER< BOX_SET_CLASS0, BOX_SET_CLASS1 >::m_box0

Definition at line 447 of file gim_box_set.h.

Referenced by node_collision(), and retrieve_node0_info().

◆ m_box1

template<typename BOX_SET_CLASS0, typename BOX_SET_CLASS1>
GIM_AABB GIM_TREE_TREE_COLLIDER< BOX_SET_CLASS0, BOX_SET_CLASS1 >::m_box1

Definition at line 448 of file gim_box_set.h.

Referenced by node_collision(), and retrieve_node1_info().

◆ m_boxset0

template<typename BOX_SET_CLASS0, typename BOX_SET_CLASS1>
BOX_SET_CLASS0* GIM_TREE_TREE_COLLIDER< BOX_SET_CLASS0, BOX_SET_CLASS1 >::m_boxset0

◆ m_boxset1

template<typename BOX_SET_CLASS0, typename BOX_SET_CLASS1>
BOX_SET_CLASS1* GIM_TREE_TREE_COLLIDER< BOX_SET_CLASS0, BOX_SET_CLASS1 >::m_boxset1

◆ m_collision_pairs

template<typename BOX_SET_CLASS0, typename BOX_SET_CLASS1>
gim_pair_set* GIM_TREE_TREE_COLLIDER< BOX_SET_CLASS0, BOX_SET_CLASS1 >::m_collision_pairs

Definition at line 436 of file gim_box_set.h.

Referenced by find_collision(), and find_collision_pairs().

◆ m_tri0

template<typename BOX_SET_CLASS0, typename BOX_SET_CLASS1>
GIM_TRIANGLE GIM_TREE_TREE_COLLIDER< BOX_SET_CLASS0, BOX_SET_CLASS1 >::m_tri0

Definition at line 451 of file gim_box_set.h.

Referenced by node_collision(), and retrieve_node0_triangle().

◆ m_tri0_plane

template<typename BOX_SET_CLASS0, typename BOX_SET_CLASS1>
btVector4 GIM_TREE_TREE_COLLIDER< BOX_SET_CLASS0, BOX_SET_CLASS1 >::m_tri0_plane

Definition at line 452 of file gim_box_set.h.

Referenced by node_collision(), and retrieve_node0_triangle().

◆ m_tri1

template<typename BOX_SET_CLASS0, typename BOX_SET_CLASS1>
GIM_TRIANGLE GIM_TREE_TREE_COLLIDER< BOX_SET_CLASS0, BOX_SET_CLASS1 >::m_tri1

Definition at line 453 of file gim_box_set.h.

Referenced by node_collision(), and retrieve_node1_triangle().

◆ m_tri1_plane

template<typename BOX_SET_CLASS0, typename BOX_SET_CLASS1>
btVector4 GIM_TREE_TREE_COLLIDER< BOX_SET_CLASS0, BOX_SET_CLASS1 >::m_tri1_plane

Definition at line 454 of file gim_box_set.h.

Referenced by node_collision(), and retrieve_node1_triangle().

◆ node0_has_triangle

template<typename BOX_SET_CLASS0, typename BOX_SET_CLASS1>
bool GIM_TREE_TREE_COLLIDER< BOX_SET_CLASS0, BOX_SET_CLASS1 >::node0_has_triangle

Definition at line 445 of file gim_box_set.h.

Referenced by retrieve_node0_info(), and retrieve_node0_triangle().

◆ node0_is_leaf

template<typename BOX_SET_CLASS0, typename BOX_SET_CLASS1>
bool GIM_TREE_TREE_COLLIDER< BOX_SET_CLASS0, BOX_SET_CLASS1 >::node0_is_leaf

Definition at line 441 of file gim_box_set.h.

Referenced by find_collision_pairs(), node_collision(), and retrieve_node0_info().

◆ node1_has_triangle

template<typename BOX_SET_CLASS0, typename BOX_SET_CLASS1>
bool GIM_TREE_TREE_COLLIDER< BOX_SET_CLASS0, BOX_SET_CLASS1 >::node1_has_triangle

Definition at line 446 of file gim_box_set.h.

Referenced by retrieve_node1_info(), and retrieve_node1_triangle().

◆ node1_is_leaf

template<typename BOX_SET_CLASS0, typename BOX_SET_CLASS1>
bool GIM_TREE_TREE_COLLIDER< BOX_SET_CLASS0, BOX_SET_CLASS1 >::node1_is_leaf

Definition at line 442 of file gim_box_set.h.

Referenced by find_collision_pairs(), node_collision(), and retrieve_node1_info().

◆ t0_is_trimesh

template<typename BOX_SET_CLASS0, typename BOX_SET_CLASS1>
bool GIM_TREE_TREE_COLLIDER< BOX_SET_CLASS0, BOX_SET_CLASS1 >::t0_is_trimesh

Definition at line 443 of file gim_box_set.h.

Referenced by find_collision(), and node_collision().

◆ t1_is_trimesh

template<typename BOX_SET_CLASS0, typename BOX_SET_CLASS1>
bool GIM_TREE_TREE_COLLIDER< BOX_SET_CLASS0, BOX_SET_CLASS1 >::t1_is_trimesh

Definition at line 444 of file gim_box_set.h.

Referenced by find_collision(), and node_collision().

◆ trans_cache_0to1

template<typename BOX_SET_CLASS0, typename BOX_SET_CLASS1>
btTransform GIM_TREE_TREE_COLLIDER< BOX_SET_CLASS0, BOX_SET_CLASS1 >::trans_cache_0to1

Definition at line 450 of file gim_box_set.h.

Referenced by find_collision(), and retrieve_node0_triangle().

◆ trans_cache_1to0

template<typename BOX_SET_CLASS0, typename BOX_SET_CLASS1>
GIM_BOX_BOX_TRANSFORM_CACHE GIM_TREE_TREE_COLLIDER< BOX_SET_CLASS0, BOX_SET_CLASS1 >::trans_cache_1to0

Definition at line 449 of file gim_box_set.h.

Referenced by find_collision(), node_collision(), and retrieve_node1_triangle().


The documentation for this class was generated from the following file: