#define AGXPHYSICS_EXPORT
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Utility class for reading and writing granular body data to .csv, .agx and .aagx files.
static bool loadGranularFileAGX(const agx::String &filename, agx::Physics::GranularBodyPtrVector &granularBodies, agx::Physics::GranularBodySystem *target, const agx::AffineMatrix4x4 &transform=agx::AffineMatrix4x4())
Loads all granular bodies in a specified .agx or .aagx file for reading.
static bool loadFileAGX(const String &filename, agx::Physics::GranularBodyPtrVector &granularBodies, agx::RigidBodyPtrVector &rigidBodies, Physics::GranularBodySystem *target, agxSDK::Simulation *targetSimulation, agx::Material *initMaterial, const agx::AffineMatrix4x4 &transform=agx::AffineMatrix4x4())
Loads all granular and rigid bodies in a specified .agx or .aagx file for reading.
static bool writeGranularFileCSV(const agx::String &filename, const agx::Physics::GranularBodyPtrVector &granularBodies, agx::Physics::GranularBodySystem *source, const agx::AffineMatrix4x4 &transform=agx::AffineMatrix4x4())
Write specified granular body data to a .agx or .aagx file.
static bool writeGranularFile(const agx::String &filename, const agx::Physics::GranularBodyPtrVector &granularBodies, agx::Physics::GranularBodySystem *source, const agx::AffineMatrix4x4 &transform=agx::AffineMatrix4x4())
Write specified granular bodies to file with format depending on file extension.
static bool writeFile(const agx::String &filename, const agx::Physics::GranularBodyPtrVector &granularBodies, agx::RigidBodyPtrVector &rigidBodies, agx::Physics::GranularBodySystem *source, const agx::AffineMatrix4x4 &transform=agx::AffineMatrix4x4())
Write specified granular and rigid bodies to an .AGX file.
static bool writeGranularFileAGX(const agx::String &filename, const agx::Physics::GranularBodyPtrVector &granularBodies, agx::Physics::GranularBodySystem *source, const agx::AffineMatrix4x4 &transform=agx::AffineMatrix4x4())
Write specified granular body data to a .agx or .aagx file.
Main material class which acts as a holder of a Surface Material and a Bulk material.
Vector containing 'raw' data.
void AGXCORE_EXPORT transform(void *target, const Format *targetFormat, const void *source, const Format *sourceFormat, size_t numElements)
Transform data between two buffers.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.