AGX Dynamics  2.37.2.0
MergeSplitUtils.h File Reference

Go to the source code of this file.

Classes

struct  agxSDK::MergeSplitUtils::ExternalForceSplitResult
 
class  agxSDK::MergeSplitUtils::WireSegmentMergedState
 Wire merged state segment along a wire. More...
 

Namespaces

 agxSDK
 The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simulation system including Material, event listeners etc.
 
 agxSDK::MergeSplitUtils
 
 agxWire
 Implements a Wire model with adaptive resolution.
 

Macros

#define REPORT_SYSTEM_JOB
 
#define REPORT_SYSTEM_JOB_ENABLE   1
 
#define REPORT_SYSTEM_JOB_EX(str)
 

Typedefs

template<typename T >
using agxSDK::MergeSplitUtils::CollectConnectingEdgesPtrContainer = agx::Vector< T * >
 
using agxSDK::MergeSplitUtils::WireSegmentMergedStateContainer = agx::VectorPOD< WireSegmentMergedState >
 

Functions

AGXPHYSICS_EXPORT agxSDK::MergedBodySolverData::ForceFrame agxSDK::MergeSplitUtils::calculateContactForceFrame (const agx::RigidBody *refRb, const agx::MergedBody::GeometryContactEdgeInteraction *contactEdge, const MergeSplitHandler *handler=nullptr)
 Calculates force frame (edge strength) given reference rigid body, contact edge and optionally an merge split handler (to use contact thresholds). More...
 
agx::Real agxSDK::MergeSplitUtils::calculateImpactSpeed (const agx::Vec3 &point, const agx::Vec3f &normal, const agx::Vec3 &cmPos, const agx::Vec3 &linVel, const agx::Vec3 &angVel)
 Calculates impact speed of one body given contact point and normal. More...
 
agx::Real agxSDK::MergeSplitUtils::calculateImpactSpeed (const agx::Vec3 &point, const agx::Vec3f &normal, const agx::Vec3 &relVel, const agx::Vec3 &cmPos1, const agx::Vec3 &angVel1, const agx::Vec3 &cmPos2, const agx::Vec3 &angVel2)
 Calculates impact speed of two rigid bodies given contact point and normal. More...
 
agx::Vec3 agxSDK::MergeSplitUtils::calculateRelativePointVelocity (const agx::Vec3 &point, const agx::Vec3 &cmPos, const agx::Vec3 &linVel, const agx::Vec3 &angVel)
 Calculates velocity at a given point given center of mass position, linear- and angular velocity. More...
 
agx::Vec3 agxSDK::MergeSplitUtils::calculateRelativePointVelocity (const agx::Vec3 &point, const agx::Vec3 &relVel, const agx::Vec3 &cmPos1, const agx::Vec3 &angVel1, const agx::Vec3 &cmPos2, const agx::Vec3 &angVel2)
 Calculates relative velocity at a point relative to two bodies. More...
 
template<typename T >
void agxSDK::MergeSplitUtils::collectConnectingEdges (const T &referenceEdge, agx::MergedBody::EdgeInteraction::InteractionTag edgeTag, agx::Bool bounceAtNonSplittableBodies, const agx::MergedBody &mergedBody, const MergeSplitHandler &handler, CollectConnectingEdgesPtrContainer< T > &result)
 Collects edges of given type/tag that are connected within a merged body. More...
 
AGXPHYSICS_EXPORT ExternalForceSplitResult agxSDK::MergeSplitUtils::shouldSplitGivenExternalForce (agxSDK::MergedBodySolverData::ForceFrame edgeStrength, const agx::RigidBody *rb, const agx::RigidBody *otherRb, const agx::Vec3 &externalForces, const agx::Vec3 &externalTorques, const agx::Vec3 &gravity, const agxSDK::MergeSplitHandler &handler)
 Checks if two bodies should split given edge strength force frame and external forces. More...
 

Macro Definition Documentation

◆ REPORT_SYSTEM_JOB

#define REPORT_SYSTEM_JOB
Value:
const char* AGX_CONCAT(agx_functionName,__LINE__) = __FUNCTION__; \
auto sjrtb = agxUtil::TimerBlock( [AGX_CONCAT(agx_functionName,__LINE__)]( agx::UInt64 start, agx::UInt64 stop )\
{\
agx::Thread::getCurrentThread()->reportSystemJob( start, stop, AGX_CONCAT(agx_functionName,__LINE__) );\
} )
static Thread * getCurrentThread()
Definition: Thread.h:696
#define AGX_CONCAT(x, y)
Definition: Object.h:40
Utility class to time a scope.
Definition: TimerBlock.h:28
uint64_t UInt64
Definition: Integer.h:41
void reportSystemJob(UInt64 startTick, UInt64 endTick, const char *description, const char *extraDataTitle=nullptr, agx::Real64 extraData=0.0)
Add an entry to the job duration log.

Definition at line 41 of file MergeSplitUtils.h.

◆ REPORT_SYSTEM_JOB_ENABLE

#define REPORT_SYSTEM_JOB_ENABLE   1

Definition at line 22 of file MergeSplitUtils.h.

◆ REPORT_SYSTEM_JOB_EX

#define REPORT_SYSTEM_JOB_EX (   str)
Value:
auto sjrtb = agxUtil::TimerBlock( []( agx::UInt64 start, agx::UInt64 stop )\
{\
} )
static Thread * getCurrentThread()
Definition: Thread.h:696
Utility class to time a scope.
Definition: TimerBlock.h:28
uint64_t UInt64
Definition: Integer.h:41
void reportSystemJob(UInt64 startTick, UInt64 endTick, const char *description, const char *extraDataTitle=nullptr, agx::Real64 extraData=0.0)
Add an entry to the job duration log.

Definition at line 35 of file MergeSplitUtils.h.