AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
agx::Physics::HierarchicalGrid Namespace Reference

Namespaces

 Rendering
 

Classes

class  Cell2DModel
 Abstract description of the data attributes for the Physics.HierarchicalGrid.Cell2D entity. More...
 
class  Cell2DPtr
 Pointer to a entity instance of type Physics.HierarchicalGrid.Cell2D. More...
 
class  CellModel
 Abstract description of the data attributes for the Physics.HierarchicalGrid.Cell entity. More...
 
class  CellPtr
 Pointer to a entity instance of type Physics.HierarchicalGrid.Cell. More...
 
class  CollisionObject2DModel
 Abstract description of the data attributes for the Physics.HierarchicalGrid.CollisionObject2D entity. More...
 
class  CollisionObject2DPtr
 Pointer to a entity instance of type Physics.HierarchicalGrid.CollisionObject2D. More...
 
class  CollisionObjectModel
 Abstract description of the data attributes for the Physics.HierarchicalGrid.CollisionObject entity. More...
 
class  CollisionObjectPtr
 Pointer to a entity instance of type Physics.HierarchicalGrid.CollisionObject. More...
 
class  ContactZone_CornerModel
 Abstract description of the data attributes for the Physics.HierarchicalGrid.ContactZone_Corner entity. More...
 
class  ContactZone_CornerPtr
 Pointer to a entity instance of type Physics.HierarchicalGrid.ContactZone_Corner. More...
 
class  ContactZone_EdgeModel
 Abstract description of the data attributes for the Physics.HierarchicalGrid.ContactZone_Edge entity. More...
 
class  ContactZone_EdgePtr
 Pointer to a entity instance of type Physics.HierarchicalGrid.ContactZone_Edge. More...
 
class  ContactZone_FaceModel
 Abstract description of the data attributes for the Physics.HierarchicalGrid.ContactZone_Face entity. More...
 
class  ContactZone_FacePtr
 Pointer to a entity instance of type Physics.HierarchicalGrid.ContactZone_Face. More...
 
class  ContactZone_InternalModel
 Abstract description of the data attributes for the Physics.HierarchicalGrid.ContactZone_Internal entity. More...
 
class  ContactZone_InternalPtr
 Pointer to a entity instance of type Physics.HierarchicalGrid.ContactZone_Internal. More...
 
class  ContactZoneDependencyModel
 Abstract description of the data attributes for the Physics.HierarchicalGrid.ContactZoneDependency entity. More...
 
class  ContactZoneDependencyPtr
 Pointer to a entity instance of type Physics.HierarchicalGrid.ContactZoneDependency. More...
 
class  ContactZoneManager
 
class  ContactZoneModel
 Abstract description of the data attributes for the Physics.HierarchicalGrid.ContactZone entity. More...
 
class  ContactZonePtr
 Pointer to a entity instance of type Physics.HierarchicalGrid.ContactZone. More...
 
class  CornerZoneModel
 Abstract description of the data attributes for the Physics.HierarchicalGrid.CornerZone entity. More...
 
class  CornerZonePtr
 Pointer to a entity instance of type Physics.HierarchicalGrid.CornerZone. More...
 
class  GridOverlapModel
 Abstract description of the data attributes for the Physics.HierarchicalGrid.GridOverlap entity. More...
 
class  GridOverlapPtr
 Pointer to a entity instance of type Physics.HierarchicalGrid.GridOverlap. More...
 
class  GridTier2DModel
 Abstract description of the data attributes for the Physics.HierarchicalGrid.GridTier2D entity. More...
 
class  GridTier2DPtr
 Pointer to a entity instance of type Physics.HierarchicalGrid.GridTier2D. More...
 
class  GridTierModel
 Abstract description of the data attributes for the Physics.HierarchicalGrid.GridTier entity. More...
 
class  GridTierPtr
 Pointer to a entity instance of type Physics.HierarchicalGrid.GridTier. More...
 
struct  NeighborCellPath
 
class  OrientedGeometryBoundModel
 Abstract description of the data attributes for the Physics.HierarchicalGrid.OrientedGeometryBound entity. More...
 
class  OrientedGeometryBoundPtr
 Pointer to a entity instance of type Physics.HierarchicalGrid.OrientedGeometryBound. More...
 
class  SolveBodyManager
 

Typedefs

typedef agx::observer_ptr
< const Cell2DModel > 
Cell2DModelConstObserver
 
typedef agx::ref_ptr< const
Cell2DModel > 
Cell2DModelConstRef
 
typedef agx::observer_ptr
< Cell2DModel > 
Cell2DModelObserver
 
typedef agx::ref_ptr< Cell2DModel > Cell2DModelRef
 
typedef agxData::Array< Cell2DPtr > Cell2DPtrArray
 
typedef agx::VectorPOD< Cell2DPtr > Cell2DPtrVector
 
typedef agx::observer_ptr
< const CellModel > 
CellModelConstObserver
 
typedef agx::ref_ptr< const
CellModel > 
CellModelConstRef
 
typedef agx::observer_ptr
< CellModel > 
CellModelObserver
 
typedef agx::ref_ptr< CellModel > CellModelRef
 
typedef agxData::Array< CellPtr > CellPtrArray
 
typedef agx::VectorPOD< CellPtr > CellPtrVector
 
typedef agx::observer_ptr
< const CollisionObject2DModel > 
CollisionObject2DModelConstObserver
 
typedef agx::ref_ptr< const
CollisionObject2DModel > 
CollisionObject2DModelConstRef
 
typedef agx::observer_ptr
< CollisionObject2DModel > 
CollisionObject2DModelObserver
 
typedef agx::ref_ptr
< CollisionObject2DModel > 
CollisionObject2DModelRef
 
typedef agxData::Array
< CollisionObject2DPtr > 
CollisionObject2DPtrArray
 
typedef agx::VectorPOD
< CollisionObject2DPtr > 
CollisionObject2DPtrVector
 
typedef agx::observer_ptr
< const CollisionObjectModel > 
CollisionObjectModelConstObserver
 
typedef agx::ref_ptr< const
CollisionObjectModel > 
CollisionObjectModelConstRef
 
typedef agx::observer_ptr
< CollisionObjectModel > 
CollisionObjectModelObserver
 
typedef agx::ref_ptr
< CollisionObjectModel > 
CollisionObjectModelRef
 
typedef agxData::Array
< CollisionObjectPtr > 
CollisionObjectPtrArray
 
typedef agx::VectorPOD
< CollisionObjectPtr > 
CollisionObjectPtrVector
 
typedef agx::observer_ptr
< const
ContactZone_CornerModel > 
ContactZone_CornerModelConstObserver
 
typedef agx::ref_ptr< const
ContactZone_CornerModel > 
ContactZone_CornerModelConstRef
 
typedef agx::observer_ptr
< ContactZone_CornerModel > 
ContactZone_CornerModelObserver
 
typedef agx::ref_ptr
< ContactZone_CornerModel > 
ContactZone_CornerModelRef
 
typedef agxData::Array
< ContactZone_CornerPtr > 
ContactZone_CornerPtrArray
 
typedef agx::VectorPOD
< ContactZone_CornerPtr > 
ContactZone_CornerPtrVector
 
typedef agx::observer_ptr
< const ContactZone_EdgeModel > 
ContactZone_EdgeModelConstObserver
 
typedef agx::ref_ptr< const
ContactZone_EdgeModel > 
ContactZone_EdgeModelConstRef
 
typedef agx::observer_ptr
< ContactZone_EdgeModel > 
ContactZone_EdgeModelObserver
 
typedef agx::ref_ptr
< ContactZone_EdgeModel > 
ContactZone_EdgeModelRef
 
typedef agxData::Array
< ContactZone_EdgePtr > 
ContactZone_EdgePtrArray
 
typedef agx::VectorPOD
< ContactZone_EdgePtr > 
ContactZone_EdgePtrVector
 
typedef agx::observer_ptr
< const ContactZone_FaceModel > 
ContactZone_FaceModelConstObserver
 
typedef agx::ref_ptr< const
ContactZone_FaceModel > 
ContactZone_FaceModelConstRef
 
typedef agx::observer_ptr
< ContactZone_FaceModel > 
ContactZone_FaceModelObserver
 
typedef agx::ref_ptr
< ContactZone_FaceModel > 
ContactZone_FaceModelRef
 
typedef agxData::Array
< ContactZone_FacePtr > 
ContactZone_FacePtrArray
 
typedef agx::VectorPOD
< ContactZone_FacePtr > 
ContactZone_FacePtrVector
 
typedef agx::observer_ptr
< const
ContactZone_InternalModel > 
ContactZone_InternalModelConstObserver
 
typedef agx::ref_ptr< const
ContactZone_InternalModel > 
ContactZone_InternalModelConstRef
 
typedef agx::observer_ptr
< ContactZone_InternalModel > 
ContactZone_InternalModelObserver
 
typedef agx::ref_ptr
< ContactZone_InternalModel > 
ContactZone_InternalModelRef
 
typedef agxData::Array
< ContactZone_InternalPtr > 
ContactZone_InternalPtrArray
 
typedef agx::VectorPOD
< ContactZone_InternalPtr > 
ContactZone_InternalPtrVector
 
typedef agx::observer_ptr
< const
ContactZoneDependencyModel > 
ContactZoneDependencyModelConstObserver
 
typedef agx::ref_ptr< const
ContactZoneDependencyModel > 
ContactZoneDependencyModelConstRef
 
typedef agx::observer_ptr
< ContactZoneDependencyModel > 
ContactZoneDependencyModelObserver
 
typedef agx::ref_ptr
< ContactZoneDependencyModel > 
ContactZoneDependencyModelRef
 
typedef agxData::Array
< ContactZoneDependencyPtr > 
ContactZoneDependencyPtrArray
 
typedef agx::VectorPOD
< ContactZoneDependencyPtr > 
ContactZoneDependencyPtrVector
 
typedef agx::observer_ptr
< const ContactZoneModel > 
ContactZoneModelConstObserver
 
typedef agx::ref_ptr< const
ContactZoneModel > 
ContactZoneModelConstRef
 
typedef agx::observer_ptr
< ContactZoneModel > 
ContactZoneModelObserver
 
typedef agx::ref_ptr
< ContactZoneModel > 
ContactZoneModelRef
 
typedef agxData::Array
< ContactZonePtr > 
ContactZonePtrArray
 
typedef agx::VectorPOD
< ContactZonePtr > 
ContactZonePtrVector
 
typedef agx::observer_ptr
< const CornerZoneModel > 
CornerZoneModelConstObserver
 
typedef agx::ref_ptr< const
CornerZoneModel > 
CornerZoneModelConstRef
 
typedef agx::observer_ptr
< CornerZoneModel > 
CornerZoneModelObserver
 
typedef agx::ref_ptr
< CornerZoneModel > 
CornerZoneModelRef
 
typedef agxData::Array
< CornerZonePtr > 
CornerZonePtrArray
 
typedef agx::VectorPOD
< CornerZonePtr > 
CornerZonePtrVector
 
typedef agx::observer_ptr
< const GridOverlapModel > 
GridOverlapModelConstObserver
 
typedef agx::ref_ptr< const
GridOverlapModel > 
GridOverlapModelConstRef
 
typedef agx::observer_ptr
< GridOverlapModel > 
GridOverlapModelObserver
 
typedef agx::ref_ptr
< GridOverlapModel > 
GridOverlapModelRef
 
typedef agxData::Array
< GridOverlapPtr > 
GridOverlapPtrArray
 
typedef agx::VectorPOD
< GridOverlapPtr > 
GridOverlapPtrVector
 
typedef agx::observer_ptr
< const GridTier2DModel > 
GridTier2DModelConstObserver
 
typedef agx::ref_ptr< const
GridTier2DModel > 
GridTier2DModelConstRef
 
typedef agx::observer_ptr
< GridTier2DModel > 
GridTier2DModelObserver
 
typedef agx::ref_ptr
< GridTier2DModel > 
GridTier2DModelRef
 
typedef agxData::Array
< GridTier2DPtr > 
GridTier2DPtrArray
 
typedef agx::VectorPOD
< GridTier2DPtr > 
GridTier2DPtrVector
 
typedef agx::observer_ptr
< const GridTierModel > 
GridTierModelConstObserver
 
typedef agx::ref_ptr< const
GridTierModel > 
GridTierModelConstRef
 
typedef agx::observer_ptr
< GridTierModel > 
GridTierModelObserver
 
typedef agx::ref_ptr
< GridTierModel > 
GridTierModelRef
 
typedef agxData::Array
< GridTierPtr > 
GridTierPtrArray
 
typedef agx::VectorPOD
< GridTierPtr > 
GridTierPtrVector
 
typedef agx::observer_ptr
< const
OrientedGeometryBoundModel > 
OrientedGeometryBoundModelConstObserver
 
typedef agx::ref_ptr< const
OrientedGeometryBoundModel > 
OrientedGeometryBoundModelConstRef
 
typedef agx::observer_ptr
< OrientedGeometryBoundModel > 
OrientedGeometryBoundModelObserver
 
typedef agx::ref_ptr
< OrientedGeometryBoundModel > 
OrientedGeometryBoundModelRef
 
typedef agxData::Array
< OrientedGeometryBoundPtr > 
OrientedGeometryBoundPtrArray
 
typedef agx::VectorPOD
< OrientedGeometryBoundPtr > 
OrientedGeometryBoundPtrVector
 
typedef agx::observer_ptr
< const SolveBodyManager > 
SolveBodyManagerConstObserver
 
typedef agx::ref_ptr< const
SolveBodyManager > 
SolveBodyManagerConstRef
 
typedef agx::observer_ptr
< SolveBodyManager > 
SolveBodyManagerObserver
 
typedef agx::ref_ptr
< SolveBodyManager > 
SolveBodyManagerRef
 

Enumerations

enum  ZoneCategory { ZONE_INTERNAL, ZONE_FACE, ZONE_EDGE, 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 alignCellTiers (CellData &cell, Index tier1, Index tier2, Index &cellIndex1, Index &cellIndex2)
 Align cell indices to the same tier. More...
 
AGXPHYSICS_EXPORT Vec3i 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 calculateNeighborIndex (const Vec3i &offset)
 
AGXPHYSICS_EXPORT Index calculateNeighborIndex (const Vec2i &offset)
 
AGXPHYSICS_EXPORT ZoneCategory calculateZoneCategory (const Vec3i &zoneId)
 
AGXPHYSICS_EXPORT UInt8 calculateZoneType (Vec3i id, UInt tierAccumulation)
 Calculates which one of the 27 internal zones the cell is part of. More...
 
template<typename ZoneDataT >
UInt countNumContacts (ZoneDataT &contactZone, Index zoneIndex)
 
template<typename ZonePtrT >
UInt countNumContacts (ZonePtrT zone)
 
UInt generateBitMask (UInt numBits)
 
AGXPHYSICS_EXPORT const Vec3i & getNeighborOffset (Index index)
 The following ordering of neighbor coordinates is used for all cell/zone interactions. More...
 
AGXPHYSICS_EXPORT const Vec2i & getNeighborOffset2d (Index index)
 
AGXPHYSICS_EXPORT const UInt8 * getNeighborPathOrderTable (size_t childIndex)
 
AGXPHYSICS_EXPORT const
NeighborCellPath * 
getNeighborPathTable (size_t childIndex)
 
AGXPHYSICS_EXPORT const Vec3i * getNeighborTable ()
 
AGXPHYSICS_EXPORT const Vec2i * getNeighborTable2d ()
 
AGXPHYSICS_EXPORT Index getParentCell (CellData &cell, Index cellIndex, UInt level)
 Return the parent cell N tiers above the specified cell. More...
 
AGXPHYSICS_EXPORT ZoneCategory getZoneCategory (Index zoneType)
 
AGXPHYSICS_EXPORT const char * getZoneCategoryName (Index category)
 
AGXPHYSICS_EXPORT bool isNeighborOffset (const Vec3i &offset)
 
AGXPHYSICS_EXPORT bool isNeighborOffset (const Vec2i &offset)
 

Variables

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

Typedef Documentation

Enumeration Type Documentation

The 27 internal zones are following categories (box features) and counts: Internal: 1 Face: 6 Edge: 12 Corner: 8.

Enumerator
ZONE_INTERNAL 
ZONE_FACE 
ZONE_EDGE 
ZONE_CORNER 

Definition at line 135 of file Components/agx/Physics/HierarchicalGrid/Util.h.

Function Documentation

Index agx::Physics::HierarchicalGrid::alignCellTiers ( CellData &  cell,
Index  tier1,
Index  tier2,
Index &  cellIndex1,
Index &  cellIndex2 
)

Align cell indices to the same tier.

Definition at line 266 of file Components/agx/Physics/HierarchicalGrid/Util.h.

References getParentCell(), and agx::InvalidIndex.

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.

Definition at line 306 of file Components/agx/Physics/HierarchicalGrid/Util.h.

References getNeighborOffset(), getParentCell(), getZoneCategory(), and ZONE_EDGE.

Index agx::Physics::HierarchicalGrid::calculateNeighborIndex ( const Vec3i &  offset)
Returns
The neighbor index given a neighbor offset vector.

Definition at line 218 of file Components/agx/Physics/HierarchicalGrid/Util.h.

References agxAssert, getNeighborOffset(), and isNeighborOffset().

Referenced by calculateZoneCategory(), and agx::createCell().

Index agx::Physics::HierarchicalGrid::calculateNeighborIndex ( const Vec2i &  offset)
ZoneCategory agx::Physics::HierarchicalGrid::calculateZoneCategory ( const Vec3i &  zoneId)
Returns
The zone category for a specified zone id.

Definition at line 299 of file Components/agx/Physics/HierarchicalGrid/Util.h.

References calculateNeighborIndex(), and getZoneCategory().

UInt8 agx::Physics::HierarchicalGrid::calculateZoneType ( Vec3i  id,
UInt  tierAccumulation 
)

Calculates which one of the 27 internal zones the cell is part of.

Definition at line 397 of file Components/agx/Physics/HierarchicalGrid/Util.h.

References agxAssert, and generateBitMask().

template<typename ZoneDataT >
UInt agx::Physics::HierarchicalGrid::countNumContacts ( ZoneDataT &  contactZone,
Index  zoneIndex 
)

Definition at line 178 of file Components/agx/Physics/HierarchicalGrid/Util.h.

Referenced by countNumContacts().

template<typename ZonePtrT >
UInt agx::Physics::HierarchicalGrid::countNumContacts ( ZonePtrT  zone)
UInt agx::Physics::HierarchicalGrid::generateBitMask ( UInt  numBits)

Definition at line 286 of file Components/agx/Physics/HierarchicalGrid/Util.h.

Referenced by calculateZoneType().

const Vec3i & agx::Physics::HierarchicalGrid::getNeighborOffset ( Index  index)

The following ordering of neighbor coordinates is used for all cell/zone interactions.

== 3D ================================

-1, -1, -1 -1, -1, 0 -1, -1, 1 -1, 0, -1 -1, 0, 0 -1, 0, 1 -1, 1, -1 -1, 1, 0 -1, 1, 1

0, -1, -1 0, -1, 0 0, -1, 1 0, 0, -1

0, 0, 0 // Self

0, 0, 1 0, 1, -1 0, 1, 0 0, 1, 1

1, -1, -1 1, -1, 0 1, -1, 1 1, 0, -1 1, 0, 0 1, 0, 1 1, 1, -1 1, 1, 0 1, 1, 1

== 2D =================================

-1, -1 -1, 0 -1, 1 0, 1 0, 0 // Self 0, -1 1, -1 1, 0 1, 1


Returns
The neighbor offset vector for a specified neighbor index.

Definition at line 204 of file Components/agx/Physics/HierarchicalGrid/Util.h.

References __private_neighborTable, and agxAssert.

Referenced by calculateBoundaryZoneId(), and calculateNeighborIndex().

const Vec2i & agx::Physics::HierarchicalGrid::getNeighborOffset2d ( Index  index)
Returns
The neighbor offset vector for a specified neighbor index, in 2d

Definition at line 210 of file Components/agx/Physics/HierarchicalGrid/Util.h.

References __private_neighborTable_2D, and agxAssert.

Referenced by calculateNeighborIndex().

const UInt8 * agx::Physics::HierarchicalGrid::getNeighborPathOrderTable ( size_t  childIndex)
const NeighborCellPath * agx::Physics::HierarchicalGrid::getNeighborPathTable ( size_t  childIndex)
const Vec3i * agx::Physics::HierarchicalGrid::getNeighborTable ( )
Returns
direct access to the neighbor table

Definition at line 201 of file Components/agx/Physics/HierarchicalGrid/Util.h.

References __private_neighborTable.

const Vec2i * agx::Physics::HierarchicalGrid::getNeighborTable2d ( )
Index agx::Physics::HierarchicalGrid::getParentCell ( CellData &  cell,
Index  cellIndex,
UInt  level 
)

Return the parent cell N tiers above the specified cell.

Definition at line 250 of file Components/agx/Physics/HierarchicalGrid/Util.h.

References agx::InvalidIndex.

Referenced by alignCellTiers(), and calculateBoundaryZoneId().

ZoneCategory agx::Physics::HierarchicalGrid::getZoneCategory ( Index  zoneType)
Returns
The category for one of the 27 zone types.

Definition at line 293 of file Components/agx/Physics/HierarchicalGrid/Util.h.

References __private_categoryTable, and agxAssert.

Referenced by calculateBoundaryZoneId(), and calculateZoneCategory().

AGXPHYSICS_EXPORT const char* agx::Physics::HierarchicalGrid::getZoneCategoryName ( Index  category)
Returns
The name of a zone category.
bool agx::Physics::HierarchicalGrid::isNeighborOffset ( const Vec3i &  offset)
Returns
true if the specified offset is a neighbor offset.

Definition at line 238 of file Components/agx/Physics/HierarchicalGrid/Util.h.

Referenced by calculateNeighborIndex(), and agx::createCell().

bool agx::Physics::HierarchicalGrid::isNeighborOffset ( const Vec2i &  offset)

Variable Documentation

const ZoneCategory agx::Physics::HierarchicalGrid::__private_categoryTable[]

Referenced by getZoneCategory().

AGXPHYSICS_EXPORT UInt8 agx::Physics::HierarchicalGrid::__private_NeighborPathOrderTable[8][32]
AGXPHYSICS_EXPORT NeighborCellPath agx::Physics::HierarchicalGrid::__private_NeighborPathTable[8][32]

Referenced by getNeighborPathTable().

const Vec3i agx::Physics::HierarchicalGrid::__private_neighborTable[]
const Vec2i agx::Physics::HierarchicalGrid::__private_neighborTable_2D[]