AGX Dynamics  2.37.2.0
Components/agx/Physics/HierarchicalGrid/Util.h File Reference
#include <agx/Vec3.h>
#include <agx/Vec2.h>
#include <agx/Math.h>
#include <agx/debug.h>
#include <agxData/LocalVector.h>
#include <agx/Physics/HierarchicalGrid/CellEntity.h>

Go to the source code of this file.

Classes

struct  agx::Physics::HierarchicalGrid::NeighborCellPath
 

Namespaces

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

Macros

#define NUM_ITERATION_ZONE_JOBS   2
 

Enumerations

enum  agx::Physics::HierarchicalGrid::ZoneCategory { agx::Physics::HierarchicalGrid::ZONE_INTERNAL, agx::Physics::HierarchicalGrid::ZONE_FACE, agx::Physics::HierarchicalGrid::ZONE_EDGE, agx::Physics::HierarchicalGrid::ZONE_CORNER }
 The 27 internal zones are following categories (box features) and counts: Internal: 1 Face: 6 Edge: 12 Corner: 8. More...
 

Functions

AGXPHYSICS_EXPORT Index agx::Physics::HierarchicalGrid::alignCellTiers (CellData &cell, Index tier1, Index tier2, Index &cellIndex1, Index &cellIndex2)
 Align cell indices to the same tier. More...
 
AGXPHYSICS_EXPORT Vec3i agx::Physics::HierarchicalGrid::calculateBoundaryZoneId (CellData &cell, Index cellIndex1, Index cellIndex2, UInt tierAccumulation)
 Corners and edges are extended to make all edges independent of each other, and the same for all faces. More...
 
AGXPHYSICS_EXPORT Index agx::Physics::HierarchicalGrid::calculateNeighborIndex (const Vec3i &offset)
 
AGXPHYSICS_EXPORT Index agx::Physics::HierarchicalGrid::calculateNeighborIndex (const Vec2i &offset)
 
AGXPHYSICS_EXPORT ZoneCategory agx::Physics::HierarchicalGrid::calculateZoneCategory (const Vec3i &zoneId)
 
AGXPHYSICS_EXPORT UInt8 agx::Physics::HierarchicalGrid::calculateZoneType (Vec3i id, UInt tierAccumulation)
 Calculates which one of the 27 internal zones the cell is part of. More...
 
template<typename ZoneDataT >
UInt agx::Physics::HierarchicalGrid::countNumContacts (ZoneDataT &contactZone, Index zoneIndex)
 
template<typename ZonePtrT >
UInt agx::Physics::HierarchicalGrid::countNumContacts (ZonePtrT zone)
 
UInt agx::Physics::HierarchicalGrid::generateBitMask (UInt numBits)
 
AGXPHYSICS_EXPORT const Vec3i & agx::Physics::HierarchicalGrid::getNeighborOffset (Index index)
 The following ordering of neighbor coordinates is used for all cell/zone interactions. More...
 
AGXPHYSICS_EXPORT const Vec2i & agx::Physics::HierarchicalGrid::getNeighborOffset2d (Index index)
 
AGXPHYSICS_EXPORT const UInt8 * agx::Physics::HierarchicalGrid::getNeighborPathOrderTable (size_t childIndex)
 
AGXPHYSICS_EXPORT const NeighborCellPath * agx::Physics::HierarchicalGrid::getNeighborPathTable (size_t childIndex)
 
AGXPHYSICS_EXPORT const Vec3i * agx::Physics::HierarchicalGrid::getNeighborTable ()
 
AGXPHYSICS_EXPORT const Vec2i * agx::Physics::HierarchicalGrid::getNeighborTable2d ()
 
AGXPHYSICS_EXPORT Index agx::Physics::HierarchicalGrid::getParentCell (CellData &cell, Index cellIndex, UInt level)
 Return the parent cell N tiers above the specified cell. More...
 
AGXPHYSICS_EXPORT ZoneCategory agx::Physics::HierarchicalGrid::getZoneCategory (Index zoneType)
 
AGXPHYSICS_EXPORT const char * agx::Physics::HierarchicalGrid::getZoneCategoryName (Index category)
 
AGXPHYSICS_EXPORT bool agx::Physics::HierarchicalGrid::isNeighborOffset (const Vec3i &offset)
 
AGXPHYSICS_EXPORT bool agx::Physics::HierarchicalGrid::isNeighborOffset (const Vec2i &offset)
 

Variables

const ZoneCategory agx::Physics::HierarchicalGrid::__private_categoryTable []
 
AGXPHYSICS_EXPORT UInt8 agx::Physics::HierarchicalGrid::__private_NeighborPathOrderTable [8][32]
 
AGXPHYSICS_EXPORT NeighborCellPath agx::Physics::HierarchicalGrid::__private_NeighborPathTable [8][32]
 
const Vec3i agx::Physics::HierarchicalGrid::__private_neighborTable []
 
const Vec2i agx::Physics::HierarchicalGrid::__private_neighborTable_2D []
 

Macro Definition Documentation

◆ NUM_ITERATION_ZONE_JOBS

#define NUM_ITERATION_ZONE_JOBS   2