|
AGXDynamics
2.31.1.0
|
A HeightField is a collision shape that can be created from a grid structure, like an image. More...
#include <HeightField.h>
Inheritance diagram for agxCollide::HeightField:Public Types | |
| typedef agx::Vector< TriangleLineSegmentResult > | TriangleLineSegmentResultVector |
| enum | Type { GROUP, BOX, CAPSULE, CYLINDER, LINE, PLANE, SPHERE, TRIMESH, HEIGHT_FIELD, CONVEX, WIRE_SHAPE, CONE, HOLLOW_CONE, HOLLOW_CYLINDER, NUM_TYPES } |
| Define the type of a Shape. More... | |
Public Member Functions | |
| HeightField (size_t resolutionX, size_t resolutionY, agx::Real sizeX, agx::Real sizeY, agx::Real bottomMargin=agx::Real(1)) | |
| Constructor for the HeightField class. More... | |
| HeightField (size_t resolutionX, size_t resolutionY, agx::Real sizeX, agx::Real sizeY, const agx::RealVector &heights, bool flipY=false, agx::Real bottomMargin=agx::Real(1)) | |
| Constructor for the HeightField class. More... | |
| template<typename T > | |
| T * | as () |
| Subclass casting. More... | |
| template<typename T > | |
| const T * | as () const |
| ShapeGroup * | asGroup () |
| Auto-cast shape to group. More... | |
| const ShapeGroup * | asGroup () const |
| Auto-cast shape to group. More... | |
| template<typename T > | |
| T * | asSafe () |
| Safe subclass casting, return nullptr if template type does not match. More... | |
| template<typename T > | |
| const T * | asSafe () const |
| virtual agx::Real | calculateBoundingRadius (BoundingAABB &localAABB) const |
Calculate the bounding volume (AABB) into localAABB and calculate the bounding radius based on the new AABB size. More... | |
| virtual agx::SPDMatrix3x3 | calculateInertia (agx::Real mass) const override |
| Returns the inertia of the shape, scaled with the mass. Inherited from class Shape. More... | |
| virtual BoundingAABB | calculateLocalBound () const override |
| Calculate the bounding volume in the local coordinate system. More... | |
| void | calculateMassProperties () |
| Calculates "mass properties" such as volume, unscaled inertia tensor and center. More... | |
| virtual void | calculatePossibleTriangleOverlapsAlongLineSegment (const agx::Vec3 &segmentStartLocal, const agx::Vec3 &segmentEndLocal, agx::UInt32Vector &triangleIndices) const override |
| Calculates an array of triangle indices of the triangles whose bounding volumes get intersected by a line segment. More... | |
| virtual void | calculatePossibleTriangleOverlapsAlongLineSegment (const agx::Vec3 &segmentStartLocal, const agx::Vec3 &segmentEndLocal, agxData::LocalVector< agx::UInt32 > &triangleIndices) const override |
| Calculates an array of triangle indices of the triangles whose bounding volumes get intersected by a line segment. More... | |
| void | calculateTriangleOverlapsAlongLineSegment (const agx::Vec3 &segmentStartLocal, const agx::Vec3 &segmentEndLocal, TriangleLineSegmentResultVector &triangleResults) const |
| Calculates all triangle overlaps of a line segment with the mesh. More... | |
| void | calculateTrianglesInVolume (const BoundingAABB &volume, const agx::AffineMatrix4x4 &meshToWorld, const agx::AffineMatrix4x4 &volumeToWorld, agx::UInt32Vector &triangleIndices) const |
| Calculates an array of triangle indices of the triangles that are within a bounding volume. More... | |
| void | calculateTrianglesInVolume (const BoundingAABB &volume, const agx::AffineMatrix4x4 &meshToWorld, const agx::AffineMatrix4x4 &volumeToWorld, agxData::LocalVector< agx::UInt32 > &triangleIndices) const |
| void | calculateVertexCoordinates (size_t vertexIndex, size_t &vertexIndexX, size_t &vertexIndexY) const |
| Calculates the vertex indices for x and y given a global vertex index. More... | |
| bool | calculateVertexIndicesTouchedByAABB (const BoundingAABB &volume, const agx::AffineMatrix4x4 &meshToWorld, const agx::AffineMatrix4x4 &volumeToWorld, agx::Vec2i &gridMin, agx::Vec2i &gridMax) const |
| Calculates the minimum and maximum vertex indices of the square that a bounding box resides in. More... | |
| virtual Shape * | clone () const override |
| Create a clone. More... | |
| FaceEdgeCirculator | createFaceEdgeCirculator (size_t triangleIndex) const |
| Creates an FaceEdgeCirculator pointing to this Triangle and a Voronoi region. More... | |
| VertexEdgeCirculator | createVertexEdgeCirculator (size_t triangleIndex, uint_fast8_t localVertexIndex) const |
| Creates an VertexEdgeCirculator pointing to this Triangle and a Voronoi region. More... | |
| HeightField * | deepCopy () const |
| Creates a new HeightField which copies data from this one. More... | |
| agx::Real | getBottomMargin () const |
| const BoundingAABB & | getBoundingVolume () const |
| const AabbTree * | getBvhTree () const |
| virtual agx::Vec3 | getCenter () const override |
| virtual const char * | getClassName () const |
| bool | getDynamic () const |
| Return if the HeightField is dynamic, which means if it should keep its MassProperties updated. More... | |
| bool | getEnableSerialization () const |
| bool | getEnableUuidGeneration () |
| agx::Physics::Geometry::ShapePtr | getEntity () const |
| Geometry * | getGeometry () |
| const Geometry * | getGeometry () const |
| size_t | getGlobalVertexIndex (size_t triangleIndex, uint_fast8_t localVertexIndex) const |
| Returns the global index of one of the three vertices in a triangle. More... | |
| uint32_t | getHalfEdgePartnerEdge (size_t globalEdgeIndex) const |
| agx::Real | getHeight (size_t x, size_t y) const |
| Gets the height at a grid point. More... | |
| const HeightFieldMeshData * | getHeightFieldMeshData () const |
| agx::UInt32 | getIndex () const |
| This index is given at creation of this object. More... | |
| const BoundingAABB & | getLocalBound () const |
| agx::AffineMatrix4x4 | getLocalTransform () const |
| agx::Real | getMaxHeight () const |
| Returns the (global) maximum height of the HeightField. More... | |
| const CollisionMeshData * | getMeshData () const |
| agx::Real | getMinAllowedHeight () const |
| Returns the minimum allowed height, which is at the same time the lower bound for a dynamic HeightField (for volume computation). More... | |
| agx::Real | getMinHeight () const |
| Returns the (global) minimum height of the HeightField. More... | |
| agx::UInt32 | getModifiedCount () const |
| size_t | getNumTriangles () const |
| size_t | getNumVertices () const |
| int | getReferenceCount () const |
| const agxCollide::RenderData * | getRenderData () const |
| If this is a ShapeGroup, then this method will return nullptr as the render data is stored in the actual children (Box, Mesh etc. More... | |
| size_t | getResolutionX () const |
| Returns the resolution (the number of height values) in dimension x. More... | |
| size_t | getResolutionY () const |
| Returns the resolution (the number of height values) in dimension y. More... | |
| agx::Vec2 | getScale () const |
| Returns the scaling factor for a single cell in the HeightField (in dimension x and y). More... | |
| agx::Vec2 | getSize () const |
| Returns the size of the HeightField (in dimension x and y). More... | |
| virtual StorageAgent * | getStorageAgent () const =0 |
| virtual agx::Vec3 | getSupportPoint (const agx::Vec3 &supportDirection) const |
| Returns the support point on face of the shape. More... | |
| agx::Real | getTotalMaximumEdgeLength () const |
| agx::AffineMatrix4x4 | getTransform () const |
| const Triangle | getTriangle (size_t triangleIndex) const |
| Mesh::Triangle | getTriangleFromPoint (const agx::Vec3 &point) const |
| Returns a triangle given the 2D-projection of a point on the xy-plane in the grid. More... | |
| size_t | getTriangleIndex (size_t indexX, size_t indexY, uint_fast8_t upper) const |
| Computes the global triangle index within the HeightField. More... | |
| agx::Real | getTriangleMaximumEdgeLength (size_t triangleIndex) const |
| agx::Vec3 | getTriangleNormal (size_t triangleIndex) const |
| agx::Vec3 | getTriangleVertex (size_t triangleIndex, uint_fast8_t localVertexIndex) const |
| Returns one of the three vertices in a triangle. More... | |
| agx::UInt8 | getType () const |
| const char * | getTypeName () const |
| agx::Uuid | getUuid () const |
| agx::Vec3 | getVertex (size_t globalVertexIndex) const |
| agx::Vec3 | getVertexFromGrid (size_t xIndex, size_t yIndex) const |
| Returns the vertex at a grid position. More... | |
| virtual agx::Real | getVolume () const override |
| bool | hasHalfEdge () const |
| bool | hasInternalCenterPoint () const |
| virtual bool | hasSupportFunction () const |
| template<typename T > | |
| bool | is () const |
| Subclass test. More... | |
| bool | isConvexEdge (size_t globalEdgeIndex) const |
| Is an edge convex? Returns always true if half edge information is missing on this edge/the whole mesh. More... | |
| bool | isConvexVertex (size_t triangleIndex, size_t localVertexIndex) const |
| Is an vertex convex? Returns always true if half edge information is missing on this vertex/the whole mesh. More... | |
| bool | isFinished () const |
| bool | isGroup () const |
| bool | isTerrain () const |
| bool | isValid () const |
| bool | isValidAndClosed () const |
| bool | isValidEdgeIndex (size_t globalEdgeIndex) const |
| bool | isValidTriangleIndex (size_t globalTriangleIndex) const |
| agx::Vec2 | projectPointToGrid (const agx::Vec3 &point) const |
| Projects a point in local HeightField coordinate system to the HeightField grid (which is moved to the first quadrant). More... | |
| virtual void | propagateTransform (const agx::AffineMatrix4x4 &transform) |
| void | reference (void *ptr=nullptr) const |
| Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
| void | setBottomMargin (agx::Real newMargin) |
| Sets the depth that is added below the lowest point in the terrain in local z direction, to prevent tunneling in this direction. More... | |
| void | setDynamic (bool dynamic) |
| Sets if the HeightField is dynamic, which means if it should keep its MassProperties updated. More... | |
| void | setEnableSerialization (bool flag) |
| Set to false to disable serialization of this object. More... | |
| void | setFinished () |
| Tells this class that it is restored correctly and should not be deleted during destruction of an Archive. More... | |
| void | setHeight (size_t xIndex, size_t yIndex, agx::Real height) |
| Sets the height at a specific grid node. More... | |
| void | setHeights (const agx::RealVector &heights, bool flipY=false) |
| Set height values of all sampled points. More... | |
| bool | setHeights (const agx::RealVector &heights, size_t minVertexX, size_t maxVertexX, size_t minVertexY, size_t maxVertexY) |
| Set height values of all grid nodes within a rectangle. More... | |
| void | setHeightsFromList (const agx::Vec2uVector &indices, const agx::RealVector &heights) |
| Set height values given a list of terrain indices and corresponding heights. More... | |
| void | setMinAllowedHeight (agx::Real minAllowedHeight) |
| Sets the new minAllowedHeight, which is at the same time the lower bound for a dynamic HeightField (for volume computation). More... | |
| virtual void | setRenderData (agxCollide::RenderData *renderData) |
| Store render data with the Shape. More... | |
| void | setUuid (const agx::Uuid &uuid) |
| Explicitly set a Uuid on a serializable object. More... | |
| HeightField * | shallowCopy () const |
| Creates a new HeightField which shares data with this one. More... | |
| void | unreference (void *ptr=nullptr) const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| void | unreference_nodelete () const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| virtual const BoundingAABB & | updateBoundingVolume () override |
| Calculate the bounding volume based on the current Shape parameters including transformation. More... | |
Static Public Member Functions | |
| static BoundingAABB | calculateBound (const agx::AffineMatrix4x4 &transform, const BoundingAABB &localBound) |
| static agxCollide::HeightField * | createFromFile (const agx::String &filename, agx::Real sizeX, agx::Real sizeY, agx::Real low, agx::Real high, agx::Real bottomMargin=agx::Real(1)) |
| static agxCollide::HeightField * | createFromImage (agxIO::Image *image, agx::Real sizeX, agx::Real sizeY, agx::Real low, agx::Real high, agx::Real bottomMargin=agx::Real(1)) |
| static size_t | getGlobalEdgeIndex (size_t triangleIndex, uint_fast8_t localEdgeIndex) |
| Computes the global edge index from a given triangle index and the local edge index within this triangle. More... | |
| static size_t | getGlobalTriangleIndex (size_t globalEdgeIndex) |
| static size_t | getLocalEdgeIndex (size_t globalEdgeIndex) |
| static const char * | getTypeName (agx::UInt8 type) |
| static void | setEnableUuidGeneration (bool flag) |
| Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled. More... | |
| template<typename T > | |
| static bool | ValidateCast (const Referenced *object) |
Protected Member Functions | |
| virtual | ~HeightField () |
| void | allocateObserverVector () const |
| void | deleteUsingDeleteHandler () const |
| void | generateUuid () |
| agx::UInt32 | incrementModifiedCount () |
| Increment the number of times the shape have been modified. More... | |
| void | restore (class agxStream::InputArchive &in) override |
| void | store (class agxStream::OutputArchive &out) const override |
| void | syncronizeShapeIndex () |
| virtual void | updateBvhTree ()=0 |
Static Protected Member Functions | |
| static DeleteHandler * | getDeleteHandler () |
| static void | setDeleteHandler (DeleteHandler *handler) |
| Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to. More... | |
Protected Attributes | |
| AabbTreeRef | m_aabbTree |
| CollisionMeshDataRef | m_collisionMeshData |
| agx::Physics::Geometry::ShapeRef | m_entity |
| Geometry * | m_geometry |
| HeightFieldMeshDataRef | m_heightFieldData |
| BoundingAABB | m_localBound |
| Mutex | m_mutex |
| ObserverContainer | m_observers |
| ShapeGroup * | m_parent |
| AtomicValue | m_refCount |
| agxCollide::RenderDataRef | m_renderData |
| agx::Index | m_shapeIndex |
A HeightField is a collision shape that can be created from a grid structure, like an image.
Each grid point defines a height, and the difference in height between the grid points is interpolated by triangles which are then used for collision detection. Each (rectangular) grid cell is divided in a lower left and an upper right triangle. The grid is assumed to be in dimension x and y, and z is assumed to be upwards in positive height. In the x and y dimension, the grid is centered at the origin in its local frame. The grid is stored internally in row major order.
Definition at line 51 of file agxCollide/HeightField.h.
|
inherited |
| agxCollide::HeightField::HeightField | ( | size_t | resolutionX, |
| size_t | resolutionY, | ||
| agx::Real | sizeX, | ||
| agx::Real | sizeY, | ||
| agx::Real | bottomMargin = agx::Real(1) |
||
| ) |
Constructor for the HeightField class.
This will create a HeightField with height 0 everywhere. Use setHeights to set the heights at all points at once, or setHeight to set it at especially defined positions.
| resolutionX | The number of sample points in dimension x. |
| resolutionY | The number of sample points in dimension y. |
| sizeX | The physical size in dimension x. |
| sizeY | The physical size in dimension y. |
| bottomMargin | How deep is the HeightField under its lowest point? Positive value. |
| agxCollide::HeightField::HeightField | ( | size_t | resolutionX, |
| size_t | resolutionY, | ||
| agx::Real | sizeX, | ||
| agx::Real | sizeY, | ||
| const agx::RealVector & | heights, | ||
| bool | flipY = false, |
||
| agx::Real | bottomMargin = agx::Real(1) |
||
| ) |
Constructor for the HeightField class.
This will create a HeightField with height 0 everywhere. Use setHeights to set the heights at all points at once, or setHeight to set it at especially defined positions.
| resolutionX | The number of sample points in dimension x. |
| resolutionY | The number of sample points in dimension y. |
| sizeX | The physical size in dimension x. |
| sizeY | The physical size in dimension y. |
| heights | - must be a row major matrix with dimensions (resolutionX, resolutionY). |
| flipY | - set to true if y decreases with increasing indices in heights. |
| bottomMargin | How deep is the HeightField under its lowest point? Positive value. |
|
protectedvirtual |
|
protectedinherited |
|
inherited |
Subclass casting.
Template type must match actual type, dynamic_cast assertion will fail otherwise.
Referenced by agx::InternalData::get(), agxVehicle::Track::getNode(), agx::InternalData::getOrCreate(), and agx::InternalData::hasData().
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Safe subclass casting, return nullptr if template type does not match.
Referenced by agxUtil::CollectBodiesAndWiresVisitor::visit().
|
inherited |
|
staticinherited |
transform) AABB (localBound) Definition at line 417 of file Shape.h.
References AGX_FORCE_INLINE, and agxData::getEntity().
|
virtualinherited |
Calculate the bounding volume (AABB) into localAABB and calculate the bounding radius based on the new AABB size.
Reimplemented in agxCollide::Sphere.
|
overridevirtualinherited |
Returns the inertia of the shape, scaled with the mass. Inherited from class Shape.
Implements agxCollide::Shape.
|
overridevirtualinherited |
Calculate the bounding volume in the local coordinate system.
Implements agxCollide::Shape.
| void agxCollide::HeightField::calculateMassProperties | ( | ) |
Calculates "mass properties" such as volume, unscaled inertia tensor and center.
Will give standard values for non-dynamic HeightFields. For dynamic HeightFields, the mass properties will be recalculated per triangle which is expensive in large HeightFields (linear in number of triangles).
|
overridevirtual |
Calculates an array of triangle indices of the triangles whose bounding volumes get intersected by a line segment.
| segmentStartLocal | The segment starting point in heightfield coordinates. |
| segmentEndLocal | The segment ending point in heightfield coordinates. |
| triangleIndices | A vector of triangle indices. It will be emptied before writing to it. |
Implements agxCollide::Mesh.
|
overridevirtual |
Calculates an array of triangle indices of the triangles whose bounding volumes get intersected by a line segment.
| segmentStartLocal | The segment starting point in heightfield coordinates. |
| segmentEndLocal | The segment ending point in heightfield coordinates. |
| triangleIndices | A vector of triangle indices. It will be emptied before writing to it. |
Implements agxCollide::Mesh.
|
inherited |
Calculates all triangle overlaps of a line segment with the mesh.
Tries to fix some corner cases such as:
| segmentStartLocal | The segment starting point in mesh coordinates. |
| segmentEndLocal | The segment ending point in mesh coordinates. |
| triangleResults | - Vector of resulting overlapped triangles |
|
inherited |
Calculates an array of triangle indices of the triangles that are within a bounding volume.
| volume | The bounding box. |
| meshToWorld | A transformation from the mesh's local frame to world coordinates. |
| volumeToWorld | A transformation from the volume's local frame to world coordinates. |
| triangleIndices | A vector of triangle indices. It will be emptied before writing to it. |
|
inherited |
| void agxCollide::HeightField::calculateVertexCoordinates | ( | size_t | vertexIndex, |
| size_t & | vertexIndexX, | ||
| size_t & | vertexIndexY | ||
| ) | const |
Calculates the vertex indices for x and y given a global vertex index.
| vertexIndex | The global vertex index. |
| vertexIndexX | A return value: The vertex index's x component. |
| vertexIndexY | A return value: The vertex index's y component. |
Definition at line 451 of file agxCollide/HeightField.h.
| bool agxCollide::HeightField::calculateVertexIndicesTouchedByAABB | ( | const BoundingAABB & | volume, |
| const agx::AffineMatrix4x4 & | meshToWorld, | ||
| const agx::AffineMatrix4x4 & | volumeToWorld, | ||
| agx::Vec2i & | gridMin, | ||
| agx::Vec2i & | gridMax | ||
| ) | const |
Calculates the minimum and maximum vertex indices of the square that a bounding box resides in.
| volume | The bounding box in its local coordinates. |
| meshToWorld | A transformation from the mesh's local frame to world coordinates. |
| volumeToWorld | A transformation from the volume's local frame to world coordinates. |
| gridMin | The minimum vertex index x and y values. |
| gridMax | The maximum vertex index x and y values. |
| Does | the volume have any overlap with the grid? |
|
overridevirtual |
Create a clone.
Reimplemented from agxCollide::Shape.
|
inlineinherited |
|
static |
| filename | - Path to an image which will be read as a height map. |
| sizeX | - World size in the x dimension |
| sizeY | - World size in the y dimension |
| low | - The lowest height in the z dimension, maps to the lowest value in the image |
| high | - The highest height in the z dimension, maps to the highest value in the image |
| bottomMargin | How deep is the HeightField under its lowest point? |
|
static |
|
inlineinherited |
Creates an VertexEdgeCirculator pointing to this Triangle and a Voronoi region.
| triangleIndex | - Index of the triangle |
| localVertexIndex | The local index of the vertex that the VertexEdgeCirculator should point to. |
Definition at line 1012 of file Mesh.h.
Referenced by agxSDK::findMostParallelEdgeAmongNeighboringTriangles().
| HeightField* agxCollide::HeightField::deepCopy | ( | ) | const |
Creates a new HeightField which copies data from this one.
(modifying one's data will not modify the other's). Less quick to create than shallowCopy (but faster than creating mesh from input data), double memory usage. The caller takes over possession of the pointer.
|
protectedinherited |
|
protectedinherited |
|
inherited |
|
inherited |
|
inherited |
|
overridevirtualinherited |
Reimplemented from agxCollide::Shape.
|
virtualinherited |
Reimplemented in agxWire::StopNode, agxWire::ConnectingNode, agxWire::EyeNode, agxWire::BodyFixedNode, agx::RigidBody, agx::Twist, agxWire::FreeNode, agx::ScrewController, agx::LockController, agxModel::WaterWrapper, agx::MergedBody, agx::MergedBody, agxModel::ConstantWindGenerator, agx::RangeController, agxModel::ConstantWaterFlowGenerator, agx::MergedBody, agx::ElectricMotorController, agx::MergedBody, agx::FrictionController, agx::MergedBody, agx::TargetSpeedController, agxModel::WindAndWaterController, agxSDK::Assembly, agx::QuatLock, agx::SphericalRel, agx::Spherical, agxWire::WireSimpleDrumController, agx::Dot2, agxModel::FractureAlgorithmBreakOnStress, agx::Swing, agxModel::FractureAlgorithmBreakOnContactForce, agx::Dot1, agxModel::FractureAlgorithmBreakOnContact, agx::Frame, agxPowerLine::detail::DimensionState3Dof< DimensionType >, agxUtil::ConstraintHolder, agxDriveTrain::PidControlledEngine, agxCable::CableDamage, agxControl::TeleportToSensorOperation, agxCollide::Geometry, agxDriveTrain::deprecated::Clutch, agxModel::Terrain, agxModel::TerrainDataInterface, agx::ObserverFrame, agxControl::StoreParticlesOperation, agxModel::SlidingNodeAttachment, agxDriveTrain::deprecated::GearBox, agxControl::EventSensor, agxPowerLine::Connection, agxModel::FractureGenerator, agxControl::LoadParticleAGXFileOperation, agxPowerLine::TranslationalConstraintImplementation, agxModel::RotatingNodeAttachment, agxModel::TwoBodyTire, agxPowerLine::detail::DimensionState1Dof< DimensionType >, agxModel::Deformable1DNodeRoute, agxPowerLine::ElementaryTranslationalConstraint, agxControl::SetVelocityOperation, agx::AddedMassInteraction, agxPowerLine::TranslationalActuator, agxDriveTrain::RpmController, agx::RigidBodyAttachment, agxVehicle::Track, agxModel::RigidNodeAttachment, agxControl::WriteParticleDataToAGXOperation, agxModel::TerrainIterativeProjectedConeFrictionModel, agxModel::Deformable1DSphereGeometryFactory, agxModel::DeformableParticleCreator, agxPowerLine::GearConstraintImplementation, agxControl::MakeParticleKinematicOperation, agxModel::ConvexSoil, agx::IterativeProjectedConeFriction, agxSDK::SimulationStatisticsListener, agxSDK::LinkedStructure, agx::ConstantNormalForceOrientedBoxFrictionModel, agxDriveTrain::deprecated::FixedGear, agxVehicle::TrackProperties, agxHydraulics::HydraulicPumpActuator, agxPowerLine::ElementaryGearConstraint, agxModel::Deformable1DPointRoute, agxModel::PointNodeAttachment, agx::PropertyContainer, agxModel::SoilParticle, agxSDK::MaterialManager::MaterialManagerSerializer, agxModel::Deformable1DCylinderGeometryFactory, agxDriveTrain::deprecated::HighLevelDifferential, agxPowerLine::TorqueGenerator, agxPowerLine::PowerLine, agx::ScaleBoxFrictionModel, agxHydraulics::PistonActuator, agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation, agx::SeparationAngle, agxWire::ConvexAreaDefinition, agxCollide::Trimesh, agxControl::LoadParticleJournalOperation, agxControl::ReplaceParticleMaterialOperation, agxWire::ShapeContactNode, agxModel::Deformable1DCapsuleGeometryFactory, agx::CubicSplineLookupTable, agxHydraulics::HydraulicMotorActuator, agxSDK::GeometryContactMergeSplitThresholds, agxDriveTrain::deprecated::TorqueConverterTable, agxDriveTrain::HolonomicGear, agxModel::Deformable1DNode, agx::BoxFrictionModel, agxPowerLine::RotationalConnector, agxWire::CircularAreaDefinition, agxPowerLine::ActuatorBodyUnit, agxPowerLine::RotationalActuator, agxModel::Deformable1DBulkProperties, agx::Attachment, agxModel::Deformable1D, agx::GranularImpactDataWriter, agxPowerLine::PowerTimeIntegralLookupTable, agx::WheelJoint, agx::OrientedIterativeProjectedConeFrictionModel, agxControl::ParticleContactDumper, agxDriveTrain::deprecated::TorqueConverter, agxCable::Route, agx::Hinge, agx::RotationalAngle, agx::CubicFunction2D, agxControl::RecordParticleShapshotJournalOperation, agxDriveTrain::deprecated::HighLevelGearBox, agxTerrain::TerrainRasterizer, agxVehicle::Wheel, agxControl::SensorOperation, agxHydraulics::FlowDimension, agxModel::HeightFieldDeformerJournalRecorder, agxModel::ParticleAttributes, agxDriveTrain::Engine, agxWire::EyeNodeArea, agxModel::SurfaceVelocityConveyorBelt, agxCable::PathRoute, agx::WorldFrameBallJoint, agx::OrientedScaleBoxFrictionModel, agxPowerLine::LinearLookupTable, agxCollide::Line, agxDriveTrain::Differential, agxVehicle::TrackRoute, agxCollide::RenderMaterial, agxControl::MeasurementSensor, agxModel::DeformableMineFace, agx::AutoSleepThreshold, agxCollide::CollisionGroupManager, agxControl::ColorParticles, agxHydraulics::NeedleValve, agxModel::DeformableParticleMesh, agxDriveTrain::ElectricMotor, agxDriveTrain::SlipGear, agxModel::OneBodyTire, agxPowerLine::ActuatorRotationalDimension, agxCable::SegmentingRoute, agx::LinearLookupTable, agx::MergeSplit, agxCollide::RenderData, agxControl::RecordParticleJournalOperation, agxPowerLine::RotationalTranslationalHolonomicConnector, agxUtil::RawMesh, agxPowerLine::RotationalDimension, agxModel::WindAndWaterController::WindGenerator, agx::Physics::GranularBodySystem, agx::Prismatic, agx::VirtualConstraintInertia, agx::OrientedBoxFrictionModel, agxModel::ThreeBodyTire, agxSDK::ConstraintMergeSplitThresholds, agx::RegularizationParameters, agxSDK::LinkedSegment, agxCollide::CollisionMeshData, agx::SphericalRelSlack, agx::SlackHingeJoint, agx::SlackLockJoint, agxDriveTrain::deprecated::HighLevelTorqueConverter, agxDriveTrain::GearBox, agxCollide::Plane, agxHydraulics::detail::GraphJoiningConnector, agxModel::Deformable1DBoxGeometryFactory, agx::CylindricalJoint, agxCable::CableDamageState, agxHydraulics::CheckValve, agxPowerLine::RotationalUnit, agx::BallJoint, agx::SlackPrismaticJoint, agx::Interaction, agx::DistanceJoint, agxPowerLine::SlotMapper, agxSDK::EventListener, agx::JournalCustomDataRecorder, agxControl::SensorEvent, agxSDK::StepEventListener, agxControl::TagOperation, agx::PrismaticUniversalJoint, agx::UniversalJoint, agxCollide::Convex, agx::SlackCylindricalJoint, agxCable::IdentityRoute, agxHydraulics::deprecated::PumpUnit, agxDriveTrain::Clutch, agxHydraulics::deprecated::MotorUnit, agxModel::HeightController, agxSDK::WireMergeSplitThresholds, agxModel::WindAndWaterController::WaterFlowGenerator, agxVehicle::TrackNode, agx::ContactTangent, agxDriveTrain::ElectricMotorConstraint, agx::LockJoint, agx::SwingTwistLock, agxCollide::WireShape, agxHydraulics::detail::SpoolValveConnector, agx::SleepThreshold, agxSDK::ConstraintMergeSplitAlgorithm, agxSDK::GeometryContactMergeSplitAlgorithm, agx::Dot2Slack, agxDriveTrain::Gear, agxPowerLine::RotationalTranslationalConnector, agxPowerLine::WireWinchActuator, agxSDK::WireMergeSplitAlgorithm, agxHydraulics::Accumulator, agxHydraulics::detail::GraphJoiningConstraintImplementation, agxModel::HeightFieldDeformer, agxDriveTrain::EnginePowerGenerator, agx::AngularLockJoint, agx::PointGravityField, agx::SplineJoint, agxControl::BaseRecordParticleJournalOperation, agx::Dot1Joint, agxPowerLine::detail::RigidBodyRotationalAttachmentSentry, agxControl::RemoveParticles, agxSDK::LinkedStructureComponent, agxDriveTrain::DifferentialLockConnector, agxDriveTrain::Shaft, agx::UniformGravityField, agx::ParticleContactSensor, agxCollide::MeshData, agxDriveTrain::deprecated::TorqueConverterSpeedRatioLookup, agxSDK::Collection, agx::ContactNormal, agxHydraulics::detail::ElementaryGraphJoiningConstraint, agxPowerLine::detail::WireWinchConnectorConstraintImplementation, agx::MergeSplitBodyStorage, agx::StrongInteractionConstraint, agxSDK::EnergyManager, agx::PlaneJoint, agx::ParticleSink, agx::Dot1Slack, agxDriveTrain::ElectricMotorConstraintImplementation, agxSDK::GranularContactMergeSplitAlgorithm, agxControl::SplitSensorOperation, agxDriveTrain::EngineDampingUpdater, agxControl::RemoveRigidBody, agxPowerLine::detail::WireWinchConnector, agxPowerLine::detail::ElementaryWireWinchConnectorConstraint, agxPowerLine::detail::RigidBodyTranslationalAttachmentSentry, agxSDK::MergedBodyMergeSplitAlgorithm, agxCable::RoutingNode, agxCable::CablePlasticity, agxHydraulics::detail::SpoolValveStaticFlowUnit, agxModel::PlasticityComponent, and agxCable::GeometryFactory.
Referenced by agxStream::InputArchive::readRef().
|
staticprotectedinherited |
| bool agxCollide::HeightField::getDynamic | ( | ) | const |
Return if the HeightField is dynamic, which means if it should keep its MassProperties updated.
Definition at line 487 of file agxCollide/HeightField.h.
|
inherited |
Definition at line 273 of file Serializable.h.
|
inherited |
|
inlineinherited |
Definition at line 395 of file Shape.h.
Referenced by agxCollide::Box::getHalfExtents(), agxWire::getNode(), and agxCollide::Sphere::getRadius().
|
inherited |
|
inherited |
|
staticinherited |
Computes the global edge index from a given triangle index and the local edge index within this triangle.
Mesh class.
| triangleIndex | The global triangle index. |
| localEdgeIndex | The local edge index within this triangle. |
Definition at line 724 of file Mesh.h.
Referenced by agxCollide::Mesh::Triangle::getHalfEdgePartnerGlobalEdgeIndex().
|
staticinherited |
|
inherited |
Returns the global index of one of the three vertices in a triangle.
| triangleIndex | Index of the triangle the vertex belongs to. |
| localVertexIndex | The vertex's index within the triangle (0 to 2). |
|
inherited |
| agx::Real agxCollide::HeightField::getHeight | ( | size_t | x, |
| size_t | y | ||
| ) | const |
Gets the height at a grid point.
| x | x coordinate on grid. |
| y | y coordinate on grid. |
| height | at this position. |
Definition at line 433 of file agxCollide/HeightField.h.
| const HeightFieldMeshData * agxCollide::HeightField::getHeightFieldMeshData | ( | ) | const |
Definition at line 500 of file agxCollide/HeightField.h.
|
inherited |
This index is given at creation of this object.
It is guaranteed to be unique for the lifetime of this library instance. As long as the application is running. This value is not serialized or restored. A new object will always get a new index no matter how it is created.
Definition at line 247 of file Serializable.h.
|
inherited |
|
staticinherited |
|
inherited |
| agx::Real agxCollide::HeightField::getMaxHeight | ( | ) | const |
Returns the (global) maximum height of the HeightField.
Definition at line 415 of file agxCollide/HeightField.h.
|
inherited |
| agx::Real agxCollide::HeightField::getMinAllowedHeight | ( | ) | const |
Returns the minimum allowed height, which is at the same time the lower bound for a dynamic HeightField (for volume computation).
Definition at line 481 of file agxCollide/HeightField.h.
| agx::Real agxCollide::HeightField::getMinHeight | ( | ) | const |
Returns the (global) minimum height of the HeightField.
Definition at line 409 of file agxCollide/HeightField.h.
|
inherited |
|
inherited |
Definition at line 760 of file Mesh.h.
Referenced by agxWire::getNode().
|
inherited |
|
inherited |
|
inherited |
| size_t agxCollide::HeightField::getResolutionX | ( | ) | const |
Returns the resolution (the number of height values) in dimension x.
Definition at line 421 of file agxCollide/HeightField.h.
| size_t agxCollide::HeightField::getResolutionY | ( | ) | const |
Returns the resolution (the number of height values) in dimension y.
Definition at line 427 of file agxCollide/HeightField.h.
| agx::Vec2 agxCollide::HeightField::getScale | ( | ) | const |
Returns the scaling factor for a single cell in the HeightField (in dimension x and y).
Definition at line 445 of file agxCollide/HeightField.h.
| agx::Vec2 agxCollide::HeightField::getSize | ( | ) | const |
Returns the size of the HeightField (in dimension x and y).
Definition at line 439 of file agxCollide/HeightField.h.
|
pure virtualinherited |
Implemented in agxWire::StopNode, agxWire::ConnectingNode, agxWire::EyeNode, agxWire::BodyFixedNode, agx::RigidBody, agx::Twist, agxWire::FreeNode, agx::ScrewController, agx::LockController, agxModel::WaterWrapper, agx::MergedBody, agx::MergedBody, agxModel::ConstantWindGenerator, agx::RangeController, agxModel::ConstantWaterFlowGenerator, agx::MergedBody, agx::ElectricMotorController, agx::MergedBody, agx::FrictionController, agx::MergedBody, agx::TargetSpeedController, agxModel::WindAndWaterController, agxSDK::Assembly, agx::QuatLock, agx::SphericalRel, agx::Spherical, agxWire::WireSimpleDrumController, agx::Dot2, agxModel::FractureAlgorithmBreakOnStress, agx::Swing, agxModel::FractureAlgorithmBreakOnContactForce, agx::Dot1, agxModel::FractureAlgorithmBreakOnContact, agx::Frame, agxPowerLine::detail::DimensionState3Dof< DimensionType >, agxUtil::ConstraintHolder, agxDriveTrain::PidControlledEngine, agxCable::CableDamage, agxControl::TeleportToSensorOperation, agxCollide::Geometry, agxDriveTrain::deprecated::Clutch, agxModel::Terrain, agxModel::TerrainDataInterface, agx::ObserverFrame, agxControl::StoreParticlesOperation, agxModel::SlidingNodeAttachment, agxDriveTrain::deprecated::GearBox, agxControl::EventSensor, agxPowerLine::Connection, agxModel::FractureGenerator, agxControl::LoadParticleAGXFileOperation, agxPowerLine::TranslationalConstraintImplementation, agxModel::RotatingNodeAttachment, agxModel::TwoBodyTire, agxModel::Deformable1DNodeRoute, agxPowerLine::detail::DimensionState1Dof< DimensionType >, agxPowerLine::ElementaryTranslationalConstraint, agxControl::SetVelocityOperation, agx::AddedMassInteraction, agxPowerLine::TranslationalActuator, agxDriveTrain::RpmController, agx::RigidBodyAttachment, agxVehicle::Track, agxModel::RigidNodeAttachment, agxControl::WriteParticleDataToAGXOperation, agxModel::TerrainIterativeProjectedConeFrictionModel, agxModel::Deformable1DSphereGeometryFactory, agxModel::DeformableParticleCreator, agxPowerLine::GearConstraintImplementation, agxControl::MakeParticleKinematicOperation, agxModel::ConvexSoil, agx::IterativeProjectedConeFriction, agxSDK::SimulationStatisticsListener, agxSDK::LinkedStructure, agx::ConstantNormalForceOrientedBoxFrictionModel, agxDriveTrain::deprecated::FixedGear, agxVehicle::TrackProperties, agxHydraulics::HydraulicPumpActuator, agxPowerLine::ElementaryGearConstraint, agxModel::Deformable1DPointRoute, agxModel::PointNodeAttachment, agx::PropertyContainer, agxModel::SoilParticle, agxSDK::MaterialManager::MaterialManagerSerializer, agxModel::Deformable1DCylinderGeometryFactory, agxDriveTrain::deprecated::HighLevelDifferential, agxPowerLine::TorqueGenerator, agxPowerLine::PowerLine, agx::ScaleBoxFrictionModel, agxHydraulics::PistonActuator, agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation, agx::SeparationAngle, agxWire::ConvexAreaDefinition, agxCollide::Trimesh, agxControl::LoadParticleJournalOperation, agxControl::ReplaceParticleMaterialOperation, agxWire::ShapeContactNode, agxModel::Deformable1DCapsuleGeometryFactory, agx::CubicSplineLookupTable, agxHydraulics::HydraulicMotorActuator, agxSDK::GeometryContactMergeSplitThresholds, agxDriveTrain::deprecated::TorqueConverterTable, agxDriveTrain::HolonomicGear, agxModel::Deformable1DNode, agx::BoxFrictionModel, agxPowerLine::RotationalConnector, agxWire::CircularAreaDefinition, agxPowerLine::ActuatorBodyUnit, agxPowerLine::RotationalActuator, agxModel::Deformable1DBulkProperties, agx::Attachment, agxModel::Deformable1D, agx::GranularImpactDataWriter, agxPowerLine::PowerTimeIntegralLookupTable, agx::WheelJoint, agx::OrientedIterativeProjectedConeFrictionModel, agxControl::ParticleContactDumper, agxDriveTrain::deprecated::TorqueConverter, agxCable::Route, agx::Hinge, agx::RotationalAngle, agx::CubicFunction2D, agxControl::RecordParticleShapshotJournalOperation, agxDriveTrain::deprecated::HighLevelGearBox, agxTerrain::TerrainRasterizer, agxVehicle::Wheel, agxControl::SensorOperation, agxHydraulics::FlowDimension, agxModel::HeightFieldDeformerJournalRecorder, agxModel::ParticleAttributes, agxDriveTrain::Engine, agxWire::EyeNodeArea, agxModel::SurfaceVelocityConveyorBelt, agxCable::PathRoute, agx::WorldFrameBallJoint, agx::OrientedScaleBoxFrictionModel, agxPowerLine::LinearLookupTable, agxCollide::Line, agxDriveTrain::Differential, agxVehicle::TrackRoute, agxCollide::RenderMaterial, agxControl::MeasurementSensor, agxModel::DeformableMineFace, agx::AutoSleepThreshold, agxCollide::CollisionGroupManager, agxControl::ColorParticles, agxHydraulics::NeedleValve, agxModel::DeformableParticleMesh, agxDriveTrain::ElectricMotor, agxDriveTrain::SlipGear, agxModel::OneBodyTire, agxPowerLine::ActuatorRotationalDimension, agxCable::SegmentingRoute, agx::LinearLookupTable, agx::MergeSplit, agxCollide::RenderData, agxControl::RecordParticleJournalOperation, agxPowerLine::RotationalTranslationalHolonomicConnector, agxUtil::RawMesh, agxPowerLine::RotationalDimension, agxModel::WindAndWaterController::WindGenerator, agx::Physics::GranularBodySystem, agx::Prismatic, agx::VirtualConstraintInertia, agx::OrientedBoxFrictionModel, agxModel::ThreeBodyTire, agxSDK::ConstraintMergeSplitThresholds, agx::RegularizationParameters, agxSDK::LinkedSegment, agxCollide::CollisionMeshData, agx::SphericalRelSlack, agx::SlackHingeJoint, agx::SlackLockJoint, agxDriveTrain::deprecated::HighLevelTorqueConverter, agxDriveTrain::GearBox, agxCollide::Plane, agxHydraulics::detail::GraphJoiningConnector, agxModel::Deformable1DBoxGeometryFactory, agx::CylindricalJoint, agxCable::CableDamageState, agxHydraulics::CheckValve, agxPowerLine::RotationalUnit, agx::BallJoint, agx::SlackPrismaticJoint, agx::Interaction, agx::DistanceJoint, agxPowerLine::SlotMapper, agxSDK::EventListener, agx::JournalCustomDataRecorder, agxControl::SensorEvent, agxSDK::StepEventListener, agxControl::TagOperation, agx::PrismaticUniversalJoint, agx::UniversalJoint, agxCollide::Convex, agx::SlackCylindricalJoint, agxCable::IdentityRoute, agxHydraulics::deprecated::PumpUnit, agxDriveTrain::Clutch, agxHydraulics::deprecated::MotorUnit, agxModel::HeightController, agxSDK::WireMergeSplitThresholds, agxModel::WindAndWaterController::WaterFlowGenerator, agxVehicle::TrackNode, agx::ContactTangent, agxDriveTrain::ElectricMotorConstraint, agx::LockJoint, agx::SwingTwistLock, agxCollide::WireShape, agxHydraulics::detail::SpoolValveConnector, agx::SleepThreshold, agxSDK::ConstraintMergeSplitAlgorithm, agxSDK::GeometryContactMergeSplitAlgorithm, agx::Dot2Slack, agxDriveTrain::Gear, agxPowerLine::RotationalTranslationalConnector, agxPowerLine::WireWinchActuator, agxSDK::WireMergeSplitAlgorithm, agxHydraulics::Accumulator, agxHydraulics::detail::GraphJoiningConstraintImplementation, agxModel::HeightFieldDeformer, agxDriveTrain::EnginePowerGenerator, agx::AngularLockJoint, agx::PointGravityField, agx::SplineJoint, agxControl::BaseRecordParticleJournalOperation, agx::Dot1Joint, agxControl::RemoveParticles, agxSDK::LinkedStructureComponent, agxDriveTrain::DifferentialLockConnector, agxDriveTrain::Shaft, agxPowerLine::detail::RigidBodyRotationalAttachmentSentry, agx::UniformGravityField, agx::ParticleContactSensor, agxCollide::MeshData, agxDriveTrain::deprecated::TorqueConverterSpeedRatioLookup, agxSDK::Collection, agx::ContactNormal, agxHydraulics::detail::ElementaryGraphJoiningConstraint, agxPowerLine::detail::WireWinchConnectorConstraintImplementation, agx::MergeSplitBodyStorage, agx::StrongInteractionConstraint, agxSDK::EnergyManager, agx::PlaneJoint, agx::ParticleSink, agx::Dot1Slack, agxDriveTrain::ElectricMotorConstraintImplementation, agxSDK::GranularContactMergeSplitAlgorithm, agxControl::SplitSensorOperation, agxDriveTrain::EngineDampingUpdater, agxControl::RemoveRigidBody, agxPowerLine::detail::WireWinchConnector, agxPowerLine::detail::ElementaryWireWinchConnectorConstraint, agxSDK::MergedBodyMergeSplitAlgorithm, agxCable::RoutingNode, agxCable::CablePlasticity, agxHydraulics::detail::SpoolValveStaticFlowUnit, agxPowerLine::detail::RigidBodyTranslationalAttachmentSentry, agxModel::PlasticityComponent, and agxCable::GeometryFactory.
|
inlinevirtualinherited |
Returns the support point on face of the shape.
| supportDirection | - Direction in shape coords where to find a support point |
Reimplemented in agxCollide::HollowCone, agxCollide::Cone, agxCollide::HollowCylinder, agxCollide::Line, agxCollide::Cylinder, agxCollide::Capsule, agxCollide::Convex, agxCollide::Box, and agxCollide::Sphere.
|
inherited |
|
inherited |
|
inlineinherited |
| triangleIndex | The index of the triangle. |
Definition at line 730 of file Mesh.h.
Referenced by agxSDK::calculateMeshOffset(), agxSDK::findMostParallelEdgeAmongNeighboringTriangles(), and agxWire::getNode().
| Mesh::Triangle agxCollide::HeightField::getTriangleFromPoint | ( | const agx::Vec3 & | point | ) | const |
Returns a triangle given the 2D-projection of a point on the xy-plane in the grid.
The triangle will be invalid if the point's projection is outside the grid.
| size_t agxCollide::HeightField::getTriangleIndex | ( | size_t | indexX, |
| size_t | indexY, | ||
| uint_fast8_t | upper | ||
| ) | const |
Computes the global triangle index within the HeightField.
| indexX | The triangle's x index (valid values: 0 to (getResolutionX() - 2)). |
| indexY | The triangle's y index (valid values: 0 to (getResolutionY() - 2)). |
| upper | Is it a lower left triangle (0) or upper right triangle (1)? |
Definition at line 459 of file agxCollide/HeightField.h.
|
inherited |
|
inherited |
|
inherited |
Returns one of the three vertices in a triangle.
| triangleIndex | Index of the triangle the vertex belongs to. |
| localVertexIndex | The vertex's index within the triangle (0 to 2). |
Definition at line 766 of file Mesh.h.
Referenced by agxSDK::findMostParallelEdgeAmongNeighboringTriangles().
|
inherited |
Definition at line 377 of file Shape.h.
Referenced by agxCollide::ColliderTable::getCollider().
|
staticinherited |
type
|
inherited |
|
inherited |
Definition at line 268 of file Serializable.h.
Referenced by agxSDK::UuidHashCollisionFilter::match().
|
inherited |
| agx::Vec3 agxCollide::HeightField::getVertexFromGrid | ( | size_t | xIndex, |
| size_t | yIndex | ||
| ) | const |
Returns the vertex at a grid position.
Definition at line 466 of file agxCollide/HeightField.h.
|
overridevirtualinherited |
Implements agxCollide::Shape.
|
inherited |
|
inherited |
|
inlinevirtualinherited |
Reimplemented in agxCollide::HollowCone, agxCollide::Cone, agxCollide::HollowCylinder, agxCollide::Line, agxCollide::Cylinder, agxCollide::Capsule, agxCollide::Convex, agxCollide::Box, and agxCollide::Sphere.
Definition at line 493 of file Shape.h.
Referenced by agxCollide::FallbackConvexCollider< ShapeType1, ShapeType2 >::_calculateContacts().
|
protectedinherited |
Increment the number of times the shape have been modified.
Definition at line 459 of file Shape.h.
References AGX_FORCE_INLINE, and agxAssert.
|
inherited |
Subclass test.
Referenced by agx::Object::getAutoScopedResource(), agxData::EntityStorage::getInstances(), and agx::Object::getResource().
|
inherited |
Is an edge convex? Returns always true if half edge information is missing on this edge/the whole mesh.
Exactly straight edges will also be considered convex.
| globalEdgeIndex |
| Is | the edge convex? |
|
inherited |
Is an vertex convex? Returns always true if half edge information is missing on this vertex/the whole mesh.
Exactly straight edges will also be considered convex. Saddle points will return false. When encountering a hole, the edges until the whole will be considered.
| triangleIndex | The global index of the triangle |
| localVertexIndex | The local index of the vertex in the triangle |
| Is | the edge convex? |
|
inherited |
Definition at line 252 of file Serializable.h.
References AGX_FORCE_INLINE.
|
inherited |
Definition at line 381 of file Shape.h.
References agxData::getType().
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Projects a point in local HeightField coordinate system to the HeightField grid (which is moved to the first quadrant).
| point | Point in height field coordinate system (height field center in origin). |
| Point | in height field grid. Will be on grid if values are between (0, 0) and (getResolutionX() - 1, getResolutionY() - 1). Drop decimals for lower lower grid coordinates, round upwards for higher ones. |
Definition at line 506 of file agxCollide/HeightField.h.
|
virtualinherited |
Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
This method should be used with care, always balanced with the same number of calls to unreference.
|
overrideprotectedinherited |
|
staticprotectedinherited |
Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
| void agxCollide::HeightField::setDynamic | ( | bool | dynamic | ) |
Sets if the HeightField is dynamic, which means if it should keep its MassProperties updated.
Definition at line 493 of file agxCollide/HeightField.h.
|
inherited |
Set to false to disable serialization of this object.
It will just be ignored during serialization (writing). It is still possible to restore TO this object.
|
staticinherited |
Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled.
|
inherited |
Tells this class that it is restored correctly and should not be deleted during destruction of an Archive.
Sets the height at a specific grid node.
| xIndex | The index of the grid node in dimension x. |
| yIndex | The index of the grid node in dimension y. |
| height | The desired height at this position. |
This method will recompute all adjacent triangles (up to 6). If several adjacent heights of are changed, it can be more efficient to call setHeights for the (rectangular) part of the grid that should be changed.
For dynamic HeightFields, only the volume and center of mass of the HeightField will be updated automatically, the unscaled inertia will remain the same. (Call the potentially costly calculateMassProperties after all desired heights have been set in order to calculate the new mass properties including inertia, if a correctly updated inertia is important).
| void agxCollide::HeightField::setHeights | ( | const agx::RealVector & | heights, |
| bool | flipY = false |
||
| ) |
Set height values of all sampled points.
| heights | - must be a row major matrix with dimensions (resolutionX, resolutionY). |
| flipY | - set to true if y decreases with increasing indices in heights. |
| bool agxCollide::HeightField::setHeights | ( | const agx::RealVector & | heights, |
| size_t | minVertexX, | ||
| size_t | maxVertexX, | ||
| size_t | minVertexY, | ||
| size_t | maxVertexY | ||
| ) |
Set height values of all grid nodes within a rectangle.
All triangles which belong to any of the points will be recalculated. This is cheaper than calling setHeight(...) for all points in the rectangle, since all triangles have to be computed just once instead of up to 6 times.
| heights | A vector of size (maxVertexX + 1 - minVertexX) * (maxVertexY + 1 - minVertexY), giving the heights for the rectangle. |
| minVertexX | The minimum vertex x index. |
| minVertexY | The minimum vertex y index. |
| maxVertexX | The maximum vertex x index. |
| maxVertexY | The maximum vertex y index. |
| true | of succeeded (parameters within bounds and heights has correct size). For dynamic HeightFields, only the volume and center of mass of the HeightField will be updated automatically, the unscaled inertia will remain the same. (Call the potentially costly calculateMassProperties after all desired heights have been set in order to calculate the new mass properties including inertia, if a correctly updated inertia is important). |
| void agxCollide::HeightField::setHeightsFromList | ( | const agx::Vec2uVector & | indices, |
| const agx::RealVector & | heights | ||
| ) |
Set height values given a list of terrain indices and corresponding heights.
| indices | - list of indices to be updated. Must be of the same dimensions as the height vector. |
| heights | - list of heights belonging to the indices to be updated. Must be of the same dimensions as the indices vector. |
Sets the new minAllowedHeight, which is at the same time the lower bound for a dynamic HeightField (for volume computation).
If the new minAllowedHeight is larger than the smallest existing height, it will be set to the smallest existing height. If the HeightField is dynamic, the mass properties will be recalculated, which is expensive in large HeightFields (linear in number of triangles). This function will not change existing height values, so that there might be heights below the minimum allowed heights if the the minimum allowed height is increased.
| minAllowedHeight | The new minimum height. |
Definition at line 472 of file agxCollide/HeightField.h.
References agx::min().
|
virtualinherited |
Store render data with the Shape.
If the shape is a Group, the render data will be stored in all the children and NOT in the actual ShapeGroup. It is better to actually access the actual primitives and store the render data there instead of the group.
Explicitly set a Uuid on a serializable object.
Use this method with great care, as it can result in non-unique identifiers in the system!
| HeightField* agxCollide::HeightField::shallowCopy | ( | ) | const |
Creates a new HeightField which shares data with this one.
(should not be used for data which will be changed afterwards). Quick to create, minimum memory overhead. The caller takes over possession of the pointer.
|
overrideprotectedinherited |
|
protectedinherited |
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
If the reference count goes to zero, it is assumed that this object is no longer referenced and is automatically deleted.
This method should be used with care, always balanced with the same number of calls to reference.
Referenced by agxData::EntityRef< ContactMaterialPtr >::~EntityRef().
|
inherited |
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
However, do not delete it, even if ref count goes to 0. Warning, unref_nodelete() should only be called if the user knows exactly who will be responsible for, one should prefer unref() over unref_nodelete() as the later can lead to memory leaks.
|
overridevirtualinherited |
Calculate the bounding volume based on the current Shape parameters including transformation.
Implements agxCollide::Shape.
|
protectedpure virtualinherited |
Implemented in agxCollide::Trimesh.
|
staticinherited |
|
protectedinherited |
|
protectedinherited |
|
protected |
Definition at line 402 of file agxCollide/HeightField.h.
|
protectedinherited |
|
mutableprotectedinherited |
Definition at line 240 of file Referenced.h.
|
mutableprotectedinherited |
Definition at line 239 of file Referenced.h.
|
protectedinherited |
|
mutableprotectedinherited |
Definition at line 241 of file Referenced.h.
|
protectedinherited |
|
protectedinherited |