NTRT Simulator  v1.1
 All Classes Namespaces Files Functions Variables Typedefs Friends Pages
tgRigidAutoCompound Class Reference

#include <tgRigidAutoCompound.h>

Public Member Functions

 tgRigidAutoCompound (std::vector< tgRigidInfo * > rigids)
 
 tgRigidAutoCompound (std::deque< tgRigidInfo * > rigids)
 
std::vector< tgRigidInfo * > execute ()
 

Protected Member Functions

void setRigidBodyForGroup (btCollisionObject *body, std::deque< tgRigidInfo * > &group)
 
void setRigidInfoForGroup (tgRigidInfo *rigidInfo, std::deque< tgRigidInfo * > &group)
 
void groupRigids ()
 
std::deque< tgRigidInfo * > findGroup (tgRigidInfo *rigid, std::deque< tgRigidInfo * > &ungrouped)
 
void createCompounds ()
 
tgRigidInfocreateCompound (std::deque< tgRigidInfo * > rigids)
 
bool rigidBelongsIn (tgRigidInfo *rigid, std::deque< tgRigidInfo * > group)
 

Protected Attributes

std::deque< tgRigidInfo * > m_rigids
 
std::vector< std::deque
< tgRigidInfo * > > 
m_groups
 
std::vector< tgRigidInfo * > m_compounded
 

Detailed Description

Rigids that share nodes should automatically be compounded before initializing. This automatically compounds shapes that rigids that share nodes while maintaining the original mapping for later transformation back into the original list (but with the RigidBody being a compound object that multiple tgRigidInfos may point to).

Definition at line 43 of file tgRigidAutoCompound.h.


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