18#include "momentum_export.h"
19#include "momentum_namespace.h"
22#include "ContactPoint.h"
70#ifndef AGX_MOMENTUM_ANALYSIS_API
150 std::string __str__()
const;
160 agxCollide::Geometry* m_geometry;
164 bool is(agxCollide::Geometry* geometry)
const;
A class describing a Geometry.
Definition: Geometry.h:44
std::string getName() const
Get the name of the geometry.
Geometry()
Default constructor.
bool hasCollisionGroup(const std::string &name) const
Checks if this geometry has a named collision group.
bool getEnableCollisions() const
Return whether this geometry can be involved in collisions.
std::pair< Vec3, Vec3 > getBound() const
Get the axis aligned bound of the Geometry.
bool pointIsInsideGeometry(Vec3 point, double radius) const
Check if the selected point is inside the geometry.
Geometry(agxCollide::Geometry *geometry)
Create a wrapper around an agxCollide::Geometry.
void setSensor(bool flag)
Specifies whether this geometry will generate contacts that the solver will see or not.
bool operator==(const Geometry &other) const
ContactPointVector getContacts() const
Get all contacts including this geometry during the current timestep.
std::shared_ptr< Material > getMaterial() const
Get the material of this geometry.
std::vector< std::string > getCollisionGroups() const
Get a list of all collision groups that this geometry has.
bool removeCollisionGroup(const std::string &name)
Remove a named collision group from this Geometry.
void setEnableCollisions(bool flag)
Enable/Disable collision detection of this geometry.
bool addCollisionGroup(const std::string &name)
Add a named collision group to this Geometry that can be used for contact filtering during a simulati...
The GranularBodySystem class acts as a container for all the active GranularBodies in the simulation.
Definition: GranularBodySystem.h:57
This class is used to access an existing simulation with all its contents including joints,...
Definition: Simulation.h:70
A 3 dimensional vector which can be used to define a point or a vector and contains basic arithmetic.
Definition: Vec3.h:40
Namespace for Momentum Scripting API.
Definition: AffineMatrix4x4.h:29
std::vector< std::shared_ptr< ContactPoint > > ContactPointVector
A vector with objects of the type ContactPoint .
Definition: ContactPoint.h:43