 |
AGXDynamics
2.35.0.2
|
Go to the documentation of this file.
19 #include <agx/config/AGX_USE_AGXTERRAIN.h>
34 typedef std::pair< Real, Real >
RealPair;
107 size_t getTileMarginSize()
const;
113 size_t getTileResolution()
const;
176 size_t m_tileMarginSize;
177 size_t m_tileResolution;
190 return m_referencePoint;
195 return m_referenceRotation;
205 return m_tileMarginSize;
210 return m_tileResolution;
215 return m_maximumDepth;
226 return worldPos * m_worldToGrid;
agx::Vec3 convertTilePositionToWorld(agxTerrain::TileId id, agx::Vec2 tilePos) const
Convert a local position in a tile to world coordinates.
TileModifications are used to provide a delta for paged terrain changes.
A terrain model based a 3D grid model with overlapping height field that can be deformed by interacti...
OutputRef< Serializable > out(const char *name, const Serializable *obj)
Return an object that contain the name and the object that should be serialized to an archive.
agx::Vec3 getReferencePoint() const
The agxTerrain namespace contains a 3D model for a dynamic deformable Terrain and related classes.
A TileSpecification determines where in the world a 2D TileId is located and contains utility methods...
static AffineMatrix4x4T< Real > translate(const Vec3T< Real > &dv)
Return a matrix which translates according to dv.
size_t getTileMarginSize() const
#define DOXYGEN_END_INTERNAL_BLOCK()
std::pair< Real, Real > RealPair
size_t getTileResolution() const
agx::Vec3 convertWorldCoordinateToTilePosition(agx::Vec3 worldPos) const
Return position in coordinate system defined by the XY-plane with local Z upwards.
#define DOXYGEN_START_INTERNAL_BLOCK()
agx::Vec3 getTileCenter(agxTerrain::TileId id) const
Return the local center position for tile id in the plane with tiles.
agxTerrain::TileId tileId
agx::AffineMatrix4x4 getTileTransform(agxTerrain::TileId id, agx::Real zPos=0) const
Return the transform that can be used to place the tile id correctly.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
InputRef< T > in(const char *name, T &obj)
Create an object with a name and a reference to the object that should be restored (usually a pointer...
agx::Real getMaximumDepth() const
agx::Quat getReferenceRotation() const
Class for writing serialized data in binary format to a stream.
#define AGXTERRAIN_EXPORT
agx::Real getTileSize() const
The full size of a tile.
agx::VectorPOD< TileModification > TileModificationVector
agx::Vec2i32 TileId
A TileId is a 2D-coordinate that specifies where a in grid a tile is located.