AGX Dynamics  2.37.2.0
CreateCell.h File Reference
#include <agx/Morton.h>
#include <agx/Prefetch.h>
#include "Common.h"
#include "Util.h"
#include "SolveBodyManager.h"

Go to the source code of this file.

Namespaces

 agx
 The agx namespace contains the dynamics/math part of the AGX Dynamics API.
 

Functions

template<typename GridTierDataT , typename CellDataT , typename CellT , typename CellIdT , typename CellPosT , typename GridCellTableT , size_t NumNeighbors>
UInt32 agx::connectToParentCell (agxData::Array< agx::UInt32 > &deadCells, agxData::Array< Physics::HierarchicalGrid::ContactZonePtr > &emptyZones, Index cellIndex, UInt8 tier, const CellIdT cellId, GridTierDataT &gridTier, CellDataT &cell, agxData::Array< CellT > &rootCells, const CellIdT *NeighborTable, agx::Bool &hasNewTiers, Physics::HierarchicalGrid::SolveBodyManager *solveBodyManager, const agx::UInt &contactZoneAccumulationLevel)
 
template<typename CellDataT , typename CellIdT >
void agx::connectToParentCell (Index cellIndex, const CellIdT cellId, Index parentCellIndex, CellDataT &cell, Physics::HierarchicalGrid::SolveBodyManager *solveBodyManager, const agx::UInt &contactZoneAccumulationLevel)
 
template<typename GridTierDataT , typename CellDataT , typename CellT , typename CellIdT , typename CellPosT , typename GridCellTableT , size_t NumNeighbors>
UInt32 agx::createCell (agxData::Array< agx::UInt32 > &deadCells, agxData::Array< Physics::HierarchicalGrid::ContactZonePtr > &emptyZones, UInt8 tier, const CellIdT cellId, GridTierDataT &gridTier, CellDataT &cell, agxData::Array< CellT > &rootCells, const CellIdT *NeighborTable, agx::Bool &hasNewTiers, Physics::HierarchicalGrid::SolveBodyManager *solveBodyManager, const agx::UInt &contactZoneAccumulationLevel)
 Create and connect a cell. More...
 
template<typename GridTierDataT , typename CellDataT , typename CellT , typename CellIdT , typename CellPosT , typename GridCellTableT , size_t NumNeighbors>
size_t agx::createMissingTiers (Real minCellSize, agxData::Array< agx::UInt32 > &deadCells, agxData::Array< Physics::HierarchicalGrid::ContactZonePtr > &emptyZones, GridTierDataT &gridTier, CellDataT &cell, agxData::Array< CellT > &rootCells, const CellIdT *NeighborTable, agx::Bool &hasNewTiers, Physics::HierarchicalGrid::SolveBodyManager *solveBodyManager, const agx::UInt &contactZoneAccumulationLevel)