AGX Dynamics  2.35.0.1
Geometry.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2022. Algoryx Simulation AB.
3 
4 All AGX source code, intellectual property, documentation, sample code,
5 tutorials, scene files and technical white papers, are copyrighted, proprietary
6 and confidential material of Algoryx Simulation AB. You may not download, read,
7 store, distribute, publish, copy or otherwise disseminate, use or expose this
8 material unless having a written signed agreement with Algoryx Simulation AB, or having been
9 advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10 valid commercial license from Algoryx Simulation AB.
11 
12 Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13 from using this software, unless otherwise stated in written agreements with
14 Algoryx Simulation AB.
15 */
16 
17 #pragma once
18 
19 #include <agxCollide/agxCollide.h>
20 #include <agx/agx.h>
21 #include <agx/observer_ptr.h>
23 #include <agxCollide/Shape.h>
25 #include <agx/Material.h>
26 #include <agx/Event.h>
27 
28 #include <agxStream/Serializable.h>
29 
30 #include <agx/Property.h>
31 
33 #include <agx/RigidBody.h>
34 #include <agx/HashSet.h>
35 #include <agx/AffineMatrix4x4.h>
36 #include <agx/BitArray.h>
37 #include <agx/SymmetricPair.h>
41 #include <agx/SetVector.h>
42 
43 
44 namespace agx
45 {
46  class MergeSplitBodyStorage;
47  class Frame;
48  class InternalData;
49  class Emitter;
50 }
51 
52 namespace agxCollide
53 {
54  class SweepAndPrune;
55  class LocalContactPoint;
56 
57 }
58 
59 namespace agxTerrain
60 {
61  class Terrain;
62 }
63 
64 namespace agxData
65 {
67 }
68 
70 
71 
72 namespace agxCollide
73 {
74  class Space;
75  class ContactPoint;
76 
77 
83 
93  {
94  public:
97 
98  public:
99 
104  Geometry( const agx::Name& name = "" );
105 
106 
111  Geometry( Shape* shape );
112 
118  Geometry( Shape* shape, const agx::AffineMatrix4x4& localShapeTransform );
119 
124  Geometry *clone( bool shallowCopyRenderData=false ) const;
125 
129  agx::Int64 getId() const;
130 
135  const agx::Name& getName() const;
136 
138  void setName( const agx::Name& name );
139 
143  agx::RigidBody *getRigidBody();
144 
148  const agx::RigidBody *getRigidBody() const;
149 
153  void setMaterial( agx::Material *material );
154 
158  agx::Material *getMaterial();
159 
163  const agx::Material *getMaterial() const;
164 
169 
176 
183 
190 
197 
202  void setEnable( bool flag );
203 
210  bool isEnabled() const;
211 
217  bool getEnable() const;
218 
233  void setSensor(bool flag, bool generateContactData = true);
234 
238  bool isSensor() const;
239 
244  bool isSensorGeneratingContactData() const;
245 
258  void addGroup( agx::UInt32 id, bool forceContactUpdate = false );
259 
272  void addGroup( const agx::Name& name, bool forceContactUpdate = false);
273 
279  void removeGroup( agx::UInt32 id, bool forceContactUpdate = false );
280 
286  void removeGroup( const agx::Name& name, bool forceContactUpdate = false);
287 
292  void removeAllGroups(bool forceContactUpdate = false);
293 
300  bool hasGroup( agx::UInt32 id ) const;
301 
308  bool hasGroup( const agx::Name& name ) const;
309 
314  void setGroupSet( agx::Physics::CollisionGroupSetPtr set );
315 
319  const agx::Physics::CollisionGroupSetPtr& getGroupSet() const;
320 
323  const GroupSet& getGroupIDs() const;
324 
328  void setEnableCollisions( const Geometry* otherGeometry, bool flag );
329 
333  bool getEnableCollisions( const Geometry* otherGeometry ) const;
334 
340  void setEnableCollisions(bool collide);
341 
345  bool getEnableCollisions() const;
346 
347 
358  bool canCollide( const Geometry *otherGeometry ) const;
359 
360 
369  virtual agx::Vec3f calculateSurfaceVelocity( const agxCollide::LocalContactPoint& point, size_t index ) const;
370 
375  virtual const BoundingAABB* getBoundingVolume() const;
376 
378  agx::PropertyContainer* getPropertyContainer();
379 
381  const agx::PropertyContainer* getPropertyContainer() const;
382 
384  bool hasPropertyContainer() const;
385 
391 
395  Space* getSpace();
396 
400  const Space* getSpace() const;
401 
402 
404 
405 
410 
415 
420 
425  agx::RigidBody* getOriginalBody();
426 
431  const agx::RigidBody* getOriginalBody() const;
432 
439  void setSurfaceVelocity( const agx::Vec3f& surfaceVelocity );
440 
445  const agx::Vec3f& getSurfaceVelocity() const;
446 
447  agx::UInt32 getSweepAndPruneIndex() const;
448 
449  // Normally updated automatically
450  virtual void updateBoundingVolume();
451 
453 
454  // Normally handled automatically
455  virtual void shapeUpdated();
456 
461 
462  public:
466  agx::Frame *getFrame();
467 
471  const agx::Frame *getFrame() const;
472 
478  void setTransform( const agx::AffineMatrix4x4& matrix );
479 
484 
490 
495 
500  void setLocalPosition( const agx::Vec3& p );
501 
509 
514  void setRotation( const agx::Quat& q );
515 
520  void setRotation( const agx::EulerAngles& e);
521 
527 
532 
537  void setLocalRotation( const agx::Quat& q );
538 
544 
549 
553  const agx::Frame* getParentFrame() const;
554 
564  bool setParentFrame( agx::Frame* frame );
565 
570  void setPosition( const agx::Vec3& p );
571 
579 
583  agx::AffineMatrix4x4 getTransform() const;
584 
588  agx::Vec3 getPosition() const;
589 
593  agx::Quat getRotation() const;
594 
595 
596  public:
597  /* Old interface, use ShapeGroup instead */
598 
606  bool add( Shape *shape, const agx::AffineMatrix4x4& localTransform = agx::AffineMatrix4x4() );
607 
612  bool remove( Shape *shape );
613 
626  Shape *getShape();
627 
639  const Shape *getShape() const;
640 
646  bool setShape(Shape *shape);
648 
649 
654  bool remove( size_t index );
655 
659  const ShapeRefVector& getShapes() const;
660 
664  bool replace( size_t shapeIndex, Shape *newShape, const agx::AffineMatrix4x4& localTransform = agx::AffineMatrix4x4());
665  bool replace( Shape *oldShape, Shape *newShape, const agx::AffineMatrix4x4& localTransform = agx::AffineMatrix4x4());
666 
673  bool replaceShapeTransform( size_t shapeIndex, const agx::AffineMatrix4x4& newTransform );
674 
681  bool replaceShapeTransform( Shape *shape, const agx::AffineMatrix4x4& newTransform );
682 
688  void cloneShapeRenderData(agxCollide::Shape* target, bool shallowCopy) const;
689 
690  public:
693  {
694  public:
702 
704  void setEnableSplit( bool flag );
705 
707  bool getEnableSplit( ) const;
708 
712  void setEnableMerge( bool flag );
716  bool getEnableMerge( ) const;
717 
723  void setForceSplitInPreStep( bool flag );
727  bool getForceSplitInPreStep( ) const;
728 
729  private:
730  enum FLAGS {
731  ENABLE_SPLIT,
732  ENABLE_MERGE,
733  FORCE_SPLIT_IN_PRE,
734  NUM_ELEMENTS
735  };
736 
737  typedef agx::BitArray<NUM_ELEMENTS> FlagVector;
738  FlagVector m_flags;
739  };
740 
742  MergeSplitProperties& getMergeSplitProperties();
743 
745  const MergeSplitProperties& getMergeSplitProperties() const;
746 
747  protected:
749  virtual ~Geometry();
750 
751  private:
753  friend class agx::Emitter;
754  friend class agx::RigidBody;
755  friend class agx::Frame;
756  friend class GeometryGroup;
757  friend class agxCollide::Space;
759  friend class agxCollide::ShapeGroup;
760  friend class agxTerrain::Terrain;
761 
762  void propagateTransform();
763  void updateFrameStorage();
764  ShapeGroup *createWrapperGroup();
765 
766  void init(const agx::Name& name);
767 
768  mutable agx::PropertyContainerRef m_propertyContainer;
769 
770  void setBody( agx::RigidBody *body, const agx::AffineMatrix4x4& invBodyTransform );
771  void removeBody();
772 
779  bool setSpace( Space* space, agx::Int64 id );
780 
781  void setSweepAndPruneIndex( agx::UInt32 index );
782  void setEntity( agx::Physics::GeometryPtr entity );
783  // void transfer(Space *space);
784  void transfer( agxData::EntityStorage *storage );
785 
786  //void synchronizeShapeLocalTransformPointers();
787 
789  void setOriginalBody( agx::RigidBody * );
790 
791  size_t findShapeIndex(Shape *shape);
792 
793  void enableCollisionsWithGroup(agx::UInt32 groupId);
794  void disableCollisionsWithGroup(agx::UInt32 groupId);
795 
797  friend class agx::InternalData;
801  agx::Referenced* getInternalData() const;
802 
806  void setInternalData( agx::Referenced* data );
808 
809  private:
810  agx::Int64 m_id;
811  ShapeRef m_shape;
812  agx::Physics::GeometryRef m_entity;
813  agx::RigidBody * m_rigidBody;
814  Space * m_space;
815 
816  agx::MaterialRef m_material;
817 
818  mutable GeometryHashVector m_disabledCollisionsHash;
819 
820  agx::FrameRef m_frame;
821  agx::ref_ptr<agx::Referenced> m_customData;
822  agx::ref_ptr<agx::Referenced> m_internalData;
823  agx::observer_ptr<agx::RigidBody> m_originalBody;
824  MergeSplitProperties m_msProperties;
825 
826  // Backward compatibility
827  ShapeRefVector m_singleShapeVector;
828 
829  static ShapeRefVector s_defaultChildVector;
830  static GroupSet s_emptySet;
831  };
832 
833 
834  /* Implementation */
835 
836  AGX_FORCE_INLINE Shape *Geometry::getShape()
837  {
838  return m_shape;
839  }
840 
841  AGX_FORCE_INLINE const Shape *Geometry::getShape() const
842  {
843  return const_cast<Geometry *>( this )->getShape();
844  }
845 
847  {
848  return m_entity;
849  }
850  AGX_FORCE_INLINE agx::RigidBody *Geometry::getRigidBody()
851  {
852  return m_rigidBody;
853  }
854 
855  AGX_FORCE_INLINE const agx::RigidBody *Geometry::getRigidBody() const
856  {
857  return m_rigidBody;
858  }
859 
860  AGX_FORCE_INLINE agx::Int64 Geometry::getId() const
861  {
862  return m_id;
863  }
864 
865  AGX_FORCE_INLINE bool Geometry::isEnabled() const
866  {
867  return m_entity.state().enabled();
868  }
869 
870  AGX_FORCE_INLINE bool Geometry::isSensor() const
871  {
872  return m_entity.state().sensor();
873  }
874 
875  inline bool Geometry::isSensorGeneratingContactData() const
876  {
877  return !m_entity.state().booleanSensor();
878  }
879 
880  AGX_FORCE_INLINE agx::UInt32 Geometry::getSweepAndPruneIndex() const
881  {
882  return m_entity.sweepAndPruneIndex();
883  }
884 
885  AGX_FORCE_INLINE bool Geometry::hasGroup( agx::UInt32 id ) const
886  {
887  return CollisionGroupManager::hasGroup(m_entity.collisionGroupSet(), id);
888  }
889 
890  AGX_FORCE_INLINE bool Geometry::hasGroup( const agx::Name& name ) const
891  {
892  return CollisionGroupManager::hasGroup(m_entity.collisionGroupSet(), name);
893  }
894 
895  AGX_FORCE_INLINE const agx::Physics::CollisionGroupSetPtr& Geometry::getGroupSet() const
896  {
897  return m_entity.collisionGroupSet();
898  }
899 
900  AGX_FORCE_INLINE void Geometry::setGroupSet( agx::Physics::CollisionGroupSetPtr set )
901  {
902  m_entity.collisionGroupSet() = set;
903  }
904 
905  AGX_FORCE_INLINE const agx::Material *Geometry::getMaterial() const
906  {
907  return m_material;
908  }
909 
910  AGX_FORCE_INLINE agx::Material *Geometry::getMaterial()
911  {
912  return m_material;
913  }
914 
915  AGX_FORCE_INLINE void Geometry::setSurfaceVelocity( const agx::Vec3f& surfaceVelocity )
916  {
917  m_entity.surfaceVelocity() = surfaceVelocity;
918  }
919 
920  AGX_FORCE_INLINE const agx::Vec3f& Geometry::getSurfaceVelocity( ) const
921  {
922  return m_entity.surfaceVelocity();
923  }
924 
925  AGX_FORCE_INLINE void Geometry::setOriginalBody( agx::RigidBody *body )
926  {
927  m_originalBody = body;
928  }
929 
930  AGX_FORCE_INLINE agx::RigidBody* Geometry::getOriginalBody( )
931  {
932  return m_originalBody.get() ? m_originalBody.get() : m_rigidBody;
933  }
934 
935  AGX_FORCE_INLINE const agx::RigidBody* Geometry::getOriginalBody( ) const
936  {
937  return m_originalBody.get() ? m_originalBody.get() : m_rigidBody;
938  }
939 
940  AGX_FORCE_INLINE bool Geometry::getEnable() const
941  {
942  return m_entity.state().enabled();
943  }
944 
945  AGX_FORCE_INLINE Space* Geometry::getSpace()
946  {
947  return m_space;
948  }
949  AGX_FORCE_INLINE const Space* Geometry::getSpace() const
950  {
951  return m_space;
952  }
953 
954  AGX_FORCE_INLINE agx::Frame* Geometry::getFrame()
955  {
956  return m_frame.get();
957  }
958 
959  AGX_FORCE_INLINE const agx::Frame* Geometry::getFrame() const
960  {
961  return m_frame.get();
962  }
963 
964  AGX_FORCE_INLINE const BoundingAABB* Geometry::getBoundingVolume() const
965  {
966  return &m_entity.boundingAABB();
967  }
968 
969 
970  AGX_FORCE_INLINE agx::PropertyContainer* Geometry::getPropertyContainer()
971  {
972  if ( !m_propertyContainer )
973  m_propertyContainer = new agx::PropertyContainer;
974  return m_propertyContainer;
975  }
976 
977  AGX_FORCE_INLINE bool Geometry::hasPropertyContainer() const
978  {
979  return ( m_propertyContainer.isValid() );
980  }
981 
982  AGX_FORCE_INLINE const agx::PropertyContainer* Geometry::getPropertyContainer() const
983  {
984  if ( !m_propertyContainer )
985  m_propertyContainer = new agx::PropertyContainer;
986 
987  return m_propertyContainer;
988  }
989 
990  AGX_FORCE_INLINE agx::Vec3f Geometry::calculateSurfaceVelocity( const agxCollide::LocalContactPoint& /* point */, size_t /* index */) const
991  {
992  return getSurfaceVelocity();
993  }
994 
995  AGX_FORCE_INLINE Geometry::MergeSplitProperties& Geometry::getMergeSplitProperties()
996  {
997  return m_msProperties;
998  }
999  AGX_FORCE_INLINE const Geometry::MergeSplitProperties& Geometry::getMergeSplitProperties() const
1000  {
1001  return m_msProperties;
1002  }
1003 
1004  AGX_FORCE_INLINE void Geometry::MergeSplitProperties::setEnableSplit( bool flag )
1005  {
1006  m_flags[ENABLE_SPLIT] = flag;
1007  }
1008  AGX_FORCE_INLINE bool Geometry::MergeSplitProperties::getEnableSplit( ) const
1009  {
1010  return m_flags[ENABLE_SPLIT];
1011  }
1012 
1013  AGX_FORCE_INLINE void Geometry::MergeSplitProperties::setEnableMerge( bool flag )
1014  {
1015  m_flags[ENABLE_MERGE] = flag;
1016  }
1017 
1018  AGX_FORCE_INLINE bool Geometry::MergeSplitProperties::getEnableMerge( ) const
1019  {
1020  return m_flags[ENABLE_MERGE];
1021  }
1022 
1023  AGX_FORCE_INLINE void Geometry::MergeSplitProperties::setForceSplitInPreStep( bool flag )
1024  {
1025  m_flags[FORCE_SPLIT_IN_PRE] = flag;
1026  }
1027 
1028  AGX_FORCE_INLINE bool Geometry::MergeSplitProperties::getForceSplitInPreStep( ) const
1029  {
1030  return m_flags[FORCE_SPLIT_IN_PRE];
1031  }
1032 
1033 
1034  AGX_FORCE_INLINE agx::AffineMatrix4x4 Geometry::getTransform() const
1035  {
1036  if (m_rigidBody)
1037  return m_entity.transform();
1038  else
1039  return m_frame->getMatrix();
1040 
1041  }
1042 
1043  AGX_FORCE_INLINE agx::Vec3 Geometry::getPosition() const
1044  {
1045  if (m_rigidBody)
1046  return m_entity.transform().getTranslate();
1047  else
1048  return m_frame->getTranslate();
1049  }
1050 
1051  AGX_FORCE_INLINE agx::Quat Geometry::getRotation() const
1052  {
1053  if (m_rigidBody)
1054  return m_entity.transform().getRotate();
1055  return m_frame->getRotate();
1056  }
1057 
1058  AGX_FORCE_INLINE void Geometry::updateFrameStorage()
1059  {
1061  }
1062 
1063  inline agx::Referenced* Geometry::getInternalData() const
1064  {
1065  return m_internalData;
1066  }
1067 } // namespace agxCollide
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:248
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
Definition: Serializable.h:207
#define AGX_TYPE_BINDING(_Type, _Name)
Definition: Type.h:179
#define AGXPHYSICS_EXPORT
#define AGX_DECLARE_VECTOR_TYPES(type)
Definition: agx/Vector.h:34
Axis aligned bounding box implementation.
Definition: BoundingAABB.h:38
Specify MergeSplit properties for a Geometry.
Definition: Geometry.h:693
The geometry representation used by the collision detection engine.
Definition: Geometry.h:93
ShapeChangeEvent shapeChangeEvent
Definition: Geometry.h:96
agx::SPDMatrix3x3 calculateInertia(agx::Real mass) const
void removeGroup(agx::UInt32 id, bool forceContactUpdate=false)
Remove a collision group id from the vector of group ids.
void setLocalPosition(agx::Real x, agx::Real y, agx::Real z)
Set the position of the geometry relative to its frame's parent frame.
Geometry(Shape *shape)
Constructor.
virtual ~Geometry()
Destructor.
void setLocalTransform(const agx::AffineMatrix4x4 &matrix)
Assign the local transformation matrix for this geometry, ignoring any eventual parent transformation...
agx::Referenced * getCustomData()
const agx::Referenced * getCustomData() const
void setEnable(bool flag)
Enable/disable collision testing for geometry.
void setEnableCollisions(const Geometry *otherGeometry, bool flag)
Specify whether otherGeometry is allowed to collide with this geometry.
const agx::Frame * getParentFrame() const
void setRotation(const agx::EulerAngles &e)
Set the rotation of the geometry relative to world frame.
agx::Event1< Geometry * > ShapeChangeEvent
Definition: Geometry.h:95
void setLocalRotation(const agx::EulerAngles &e)
Set the rotation of the geometry relative to its frame's parent frame.
void setEnableCollisions(bool collide)
Should this geometry collide with any other geometries.
agx::Quat getLocalRotation() const
void setCustomData(agx::Referenced *data)
Store a ref_ptr to a user custom data class, which must be inherited from Referenced.
void setLocalPosition(const agx::Vec3 &p)
Set the position of the geometry relative to its frame's parent frame.
const agx::AffineMatrix4x4 & getLocalTransform() const
agx::Frame * getParentFrame()
void setTransform(const agx::AffineMatrix4x4 &matrix)
Set the transform of the geometry.
void setName(const agx::Name &name)
Set the name of this Geometry.
void setMaterial(agx::Material *material)
Set the material of the geometry.
void removeAllGroups(bool forceContactUpdate=false)
Remove all collision group ids.
Geometry(const agx::Name &name="")
Constructor.
void setPosition(agx::Real x, agx::Real y, agx::Real z)
Set the position of the frame in world coordinates.
bool setParentFrame(agx::Frame *frame)
Set the parent frame of this geometry's frame.
void setSensor(bool flag, bool generateContactData=true)
Sets if the geometry should be a sensor.
agx::Vec3 getLocalPosition() const
CollisionGroupManager::GroupIdHash GroupSet
Deprecated: Only for backward compatibility.
Definition: Geometry.h:322
agx::Vec3 calculateCenterOfMassOffset() const
bool getEnableCollisions() const
void setRotation(const agx::OrthoMatrix3x3 &m)
Set the rotation of the geometry relative to world frame.
void removeMaterial()
Remove the material from the geometry.
virtual void updateBoundingVolume()
const GroupSet & getGroupIDs() const
agx::Real calculateMass() const
agxCollide::GroupIdCollection findGroupIdCollection() const
void addGroup(agx::UInt32 id, bool forceContactUpdate=false)
Add the specified id to a vector of group id, this will make a geometry part of the group id.
void setPosition(const agx::Vec3 &p)
Set the position of the frame in world coordinates.
agx::Real calculateVolume() const
bool canCollide(const Geometry *otherGeometry) const
const agx::Name & getName() const
Get the name.
void removeGroup(const agx::Name &name, bool forceContactUpdate=false)
Remove a named collision group from the vector of named group ids.
Geometry * clone(bool shallowCopyRenderData=false) const
This method will make a deep copy of the geometry, excluding membership in any RigidBody.
Geometry(Shape *shape, const agx::AffineMatrix4x4 &localShapeTransform)
Constructor.
bool getEnableCollisions(const Geometry *otherGeometry) const
void addGroup(const agx::Name &name, bool forceContactUpdate=false)
Add the specified name to a vector of named group id, this will make a geometry part of the group nam...
bool remove(Shape *shape)
Remove a shape from the geometry.
void setRotation(const agx::Quat &q)
Set the rotation of the geometry relative to world frame.
virtual void shapeUpdated()
void setPropertyContainer(agx::PropertyContainer *container)
Give this a new PropertyContainer.
void setLocalRotation(const agx::Quat &q)
Set the rotation of the geometry relative to its frame's parent frame.
bool add(Shape *shape, const agx::AffineMatrix4x4 &localTransform=agx::AffineMatrix4x4())
Add a shape to the geometry.
Collection of geometry group names and id's.
Base class for a shape.
Definition: Shape.h:54
This class contains all Geometries and performs Broad Phase and Narrow Phase collision detection to c...
Definition: Space.h:82
Data storage for a collection of entity instances of a specified EntityModel.
Definition: EntityStorage.h:73
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
Definition: Serializable.h:45
A terrain model based a 3D grid model with overlapping height field that can be deformed by interacti...
Spawns new bodys inside a given volume.
Definition: Emitter.h:45
This class provides conversion services between Euler angles in any of the 24 conventions and corresp...
Definition: EulerAngles.h:70
The object defining a frame of reference and providing transformations operations.
Definition: agx/Frame.h:68
Inheritance with partial specialization due to bug with ref_ptr containers.
Definition: agx/HashSet.h:666
This class is a combined container which has the find complexity of a HashTable, deterministic iterat...
Definition: HashVector.h:41
Main material class which acts as a holder of a Surface Material and a Bulk material.
Definition: Material.h:388
Book keeping of a body which can be merged with other bodies.
Representation of a name string.
Definition: Name.h:33
Specialized types of matrices for holding orthogonal transformation matrices.
Pointer to a entity instance of type Physics.CollisionGroupSet.
static agxData::ScalarAttributeT< agx::AffineMatrix4x4 > * transformAttribute
static agxData::ScalarAttributeT< agx::AffineMatrix4x4 > * localTransformAttribute
Pointer to a entity instance of type Physics.Geometry.
Class that is a container of named properties.
Definition: Property.h:129
void getRotate(T &angle, T &x, T &y, T &z) const
Get the angle and vector components represented by the quaternion.
Base class providing referencing counted objects.
Definition: Referenced.h:114
Referenced()
Default constructor.
The rigid body class, combining a geometric model and a frame of reference.
Definition: RigidBody.h:55
Specialized type of matrices for holding symmetric positive definite matrices.
Definition: SPDMatrix3x3.h:49
This class is a combined container which has the find complexity of a HashTable, deterministic iterat...
Definition: SetVector.h:38
A std::pair, with both elements of the same type, and symmetric so (a, b) == (b, a)
Definition: SymmetricPair.h:32
bool isValid() const
Definition: ref_ptr.h:268
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition: macros.h:97
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition: macros.h:96
#define AGX_FORCE_INLINE
Definition: macros.h:58
This namespace consists of a set of classes for handling geometric intersection tests including boole...
agx::SetVector< agx::ref_ptr< agxCollide::Geometry > > GeometryRefSetVector
Definition: Geometry.h:82
agx::HashVector< const Geometry *, agx::observer_ptr< const Geometry > > GeometryHashVector
Definition: Geometry.h:80
agx::HashSet< const Geometry * > GeometryHashSet
Definition: Geometry.h:81
Contains classes for low level data storage for AGX.
Definition: Container.h:23
AGXCORE_EXPORT EntityModel * getEntity(const agx::Path &path)
Get a entity with a specified path.
agx::SymmetricPair< agx::Physics::GeometryPtr > GeometryPair
Definition: Geometry.h:66
The agxTerrain namespace contains a 3D model for a dynamic deformable Terrain and related classes.
Definition: Geometry.h:60
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
uint32_t UInt32
Definition: Integer.h:40
int64_t Int64
Definition: Integer.h:46
double Real
Definition: Real.h:42
AffineMatrix4x4T< Real > AffineMatrix4x4
agx::ref_ptr< Material > MaterialRef
Definition: Material.h:59
void AGXPHYSICS_EXPORT init()
Initialize agx.
agx::ref_ptr< Frame > FrameRef
Definition: agx/Frame.h:52