AGX Dynamics  2.35.0.1
Common.h File Reference

Go to the source code of this file.

Classes

struct  agx::CellSortEntry
 
struct  agx::LocalOverlap
 

Namespaces

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

Macros

#define GRID_NUM_SUBSYSTEMS   2
 
#define GRID_SUBSYSTEM_GEOMETRY   0
 
#define GRID_SUBSYSTEM_PARTICLE   1
 
#define POST_FILTER_OBB_TESTS   1
 

Typedefs

typedef agx::HashTable< Vec3i, agx::Physics::HierarchicalGrid::ContactZonePtr > agx::ContactZoneTable
 
typedef CellTable< Vec2i > agx::GridCell2DTable
 
typedef CellTable< Vec3i > agx::GridCellTable
 
typedef agxData::LocalVector< LocalOverlap > agx::LocalOverlapVector
 
typedef agx::HashTable< UInt64, agx::Physics::HierarchicalGrid::ContactZoneDependencyPtr > agx::ZoneDependencyTable
 

Enumerations

enum  agx::CellState { agx::CELL_DEAD , agx::CELL_UNINITIALIZED , agx::CELL_ACTIVE }
 

Functions

UInt agx::calculateCellChildIndex (const Vec2i &cellId)
 
UInt agx::calculateCellChildIndex (const Vec3i &cellId)
 
void agx::calculateCellId (const Vec3 &pos, Real invCellSize, Vec2i &id)
 
void agx::calculateCellId (const Vec3 &pos, Real invCellSize, Vec3i &id)
 
Vec2i agx::calculateChildCellId (const Vec2i &cellId, UInt8 childIndex)
 
Vec3i agx::calculateChildCellId (const Vec3i &cellId, UInt8 childIndex)
 
Vec2i agx::calculateNonNegativeId (const Vec2i &cellId, UInt8)
 
Vec3i agx::calculateNonNegativeId (const Vec3i &cellId, UInt8)
 
Vec2i agx::calculateParentCellId (const Vec2i &cellId)
 
Vec3i agx::calculateParentCellId (const Vec3i &cellId)
 
UInt agx::calculateRootCellIndex (const Vec2i &cellId)
 
UInt agx::calculateRootCellIndex (const Vec3i &cellId)
 
UInt8 agx::calculateTier (Real minCellSize, const agxData::Array< Real > &gridTier_size)
 Calculates the tier where the given object size will fit. More...
 
bool agx::compareCellSortEntries (const CellSortEntry &p1, const CellSortEntry &p2)
 
Vec3 agx::cornerOffsets2D (Real32 radius, size_t corner)
 
template<>
Vec2i agx::getCornerId (size_t corner, Real32 radius, Vec3f centerPosition, Real32 invCellSize)
 
template<typename CellIdT >
CellIdT agx::getCornerId (size_t, Real32, Vec3f, Real32)
 

Macro Definition Documentation

◆ GRID_NUM_SUBSYSTEMS

#define GRID_NUM_SUBSYSTEMS   2

Definition at line 37 of file Common.h.

◆ GRID_SUBSYSTEM_GEOMETRY

#define GRID_SUBSYSTEM_GEOMETRY   0

Definition at line 35 of file Common.h.

◆ GRID_SUBSYSTEM_PARTICLE

#define GRID_SUBSYSTEM_PARTICLE   1

Definition at line 36 of file Common.h.

◆ POST_FILTER_OBB_TESTS

#define POST_FILTER_OBB_TESTS   1

Definition at line 33 of file Common.h.