|
AGXDynamics
2.31.1.0
|
Mesh is a common base class for triangle meshes, such as Mesh or HeightField. More...
#include <Mesh.h>
Inheritance diagram for agxCollide::Mesh:Classes | |
| class | FaceEdgeCirculator |
| Class in order to circulate over the edges connected to a Triangle's face. More... | |
| class | Triangle |
| Class for more intuitive access to the Mesh's mesh data. More... | |
| struct | TriangleLineSegmentResult |
| Struct used in calculateTriangleOverlapsAlongLineSegment. More... | |
| class | VertexEdgeCirculator |
| Class in order to circulate over the edges connected to a Triangle's vertex. More... | |
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 | |
| 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... | |
| virtual void | calculatePossibleTriangleOverlapsAlongLineSegment (const agx::Vec3 &segmentStartLocal, const agx::Vec3 &segmentEndLocal, agx::UInt32Vector &triangleIndices) const =0 |
| 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 =0 |
| 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 |
| virtual Shape * | clone () const |
| 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... | |
| agx::Real | getBottomMargin () const |
| const BoundingAABB & | getBoundingVolume () const |
| const AabbTree * | getBvhTree () const |
| virtual agx::Vec3 | getCenter () const override |
| virtual const char * | getClassName () const |
| 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::UInt32 | getIndex () const |
| This index is given at creation of this object. More... | |
| const BoundingAABB & | getLocalBound () const |
| agx::AffineMatrix4x4 | getLocalTransform () const |
| const CollisionMeshData * | getMeshData () const |
| 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... | |
| 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 |
| 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 |
| 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 |
| 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 | 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... | |
| 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... | |
| 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 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 | |
| Mesh (Shape::Type type, agx::Physics::Geometry::ShapePtr entity) | |
| Hidden, should only be called by child classes. More... | |
| virtual | ~Mesh () |
| Hide destructor. More... | |
| 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 |
| BoundingAABB | m_localBound |
| Mutex | m_mutex |
| ObserverContainer | m_observers |
| ShapeGroup * | m_parent |
| AtomicValue | m_refCount |
| agxCollide::RenderDataRef | m_renderData |
| agx::Index | m_shapeIndex |
Mesh is a common base class for triangle meshes, such as Mesh or HeightField.
It is a purely abstract class and should not be used by itself.
All triangles are stored as triangle lists in counter clockwise winding. The raw data is stored in the CollisionMeshData class as arrays. For each triangle, edge i points from vertex i to vertex (i + 1) modulo 3, 0 <= i < 3 and are thus stored in the vertex indices (CollisionMeshData::indices).
There are three ways of accessing the mesh data:
Meshes such as Trimeshes or HeightFields can have a half edge structure which can be used for traversing the mesh. There, each edge has a half edge partner, which is the corresponding edge in the neighboring triangle. At holes (or at borders of a HeightField), this neighbor triangle will be invalid.
Due to the internal representation, errors can occur if the number of triangles exceeds the maximum of integers / 3 - 1, (for 32 bit: 1431655764). Therefore, input data with larger numbers of triangles will be cut off at this point.
|
inherited |
|
protected |
Hidden, should only be called by child classes.
|
protectedvirtual |
Hide destructor.
|
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.
|
overridevirtual |
Returns the inertia of the shape, scaled with the mass. Inherited from class Shape.
Implements agxCollide::Shape.
|
overridevirtual |
Calculate the bounding volume in the local coordinate system.
Implements agxCollide::Shape.
|
pure virtual |
Calculates an array of triangle indices of the triangles whose bounding volumes get intersected by a line segment.
| segmentStartLocal | The segment starting point in mesh coordinates. |
| segmentEndLocal | The segment ending point in mesh coordinates. |
| triangleIndices | A vector of triangle indices. It will be emptied before being written to. |
Implemented in agxCollide::HeightField, and agxCollide::Trimesh.
|
pure virtual |
Calculates an array of triangle indices of the triangles whose bounding volumes get intersected by a line segment.
| segmentStartLocal | The segment starting point in mesh coordinates. |
| segmentEndLocal | The segment ending point in mesh coordinates. |
| triangleIndices | A vector of triangle indices. It will be emptied before being written to. |
Implemented in agxCollide::HeightField, and agxCollide::Trimesh.
| void agxCollide::Mesh::calculateTriangleOverlapsAlongLineSegment | ( | const agx::Vec3 & | segmentStartLocal, |
| const agx::Vec3 & | segmentEndLocal, | ||
| TriangleLineSegmentResultVector & | triangleResults | ||
| ) | const |
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 |
| void agxCollide::Mesh::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.
| 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. |
| void agxCollide::Mesh::calculateTrianglesInVolume | ( | const BoundingAABB & | volume, |
| const agx::AffineMatrix4x4 & | meshToWorld, | ||
| const agx::AffineMatrix4x4 & | volumeToWorld, | ||
| agxData::LocalVector< agx::UInt32 > & | triangleIndices | ||
| ) | const |
|
virtualinherited |
Create a clone.
Reimplemented in agxCollide::HeightField, agxCollide::HollowCone, agxCollide::Trimesh, agxCollide::Cone, agxCollide::HollowCylinder, agxCollide::Plane, agxCollide::Convex, agxCollide::Cylinder, agxCollide::Capsule, agxCollide::Box, and agxCollide::Sphere.
|
inline |
Creates an FaceEdgeCirculator pointing to this Triangle and a Voronoi region.
|
inline |
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().
|
protectedinherited |
|
protectedinherited |
| agx::Real agxCollide::Mesh::getBottomMargin | ( | ) | const |
|
inherited |
| const AabbTree * agxCollide::Mesh::getBvhTree | ( | ) | const |
|
overridevirtual |
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 |
|
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 |
|
static |
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().
|
static |
| size_t agxCollide::Mesh::getGlobalVertexIndex | ( | size_t | triangleIndex, |
| uint_fast8_t | localVertexIndex | ||
| ) | const |
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). |
| uint32_t agxCollide::Mesh::getHalfEdgePartnerEdge | ( | size_t | globalEdgeIndex | ) | const |
|
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.
| const BoundingAABB & agxCollide::Mesh::getLocalBound | ( | ) | const |
|
static |
|
inherited |
| const CollisionMeshData * agxCollide::Mesh::getMeshData | ( | ) | const |
|
inherited |
| size_t agxCollide::Mesh::getNumTriangles | ( | ) | const |
Definition at line 760 of file Mesh.h.
Referenced by agxWire::getNode().
| size_t agxCollide::Mesh::getNumVertices | ( | ) | const |
|
inherited |
|
inherited |
|
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.
| agx::Real agxCollide::Mesh::getTotalMaximumEdgeLength | ( | ) | const |
|
inherited |
|
inline |
| triangleIndex | The index of the triangle. |
Definition at line 730 of file Mesh.h.
Referenced by agxSDK::calculateMeshOffset(), agxSDK::findMostParallelEdgeAmongNeighboringTriangles(), and agxWire::getNode().
| agx::Real agxCollide::Mesh::getTriangleMaximumEdgeLength | ( | size_t | triangleIndex | ) | const |
| agx::Vec3 agxCollide::Mesh::getTriangleNormal | ( | size_t | triangleIndex | ) | const |
| agx::Vec3 agxCollide::Mesh::getTriangleVertex | ( | size_t | triangleIndex, |
| uint_fast8_t | localVertexIndex | ||
| ) | const |
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().
| agx::Vec3 agxCollide::Mesh::getVertex | ( | size_t | globalVertexIndex | ) | const |
|
overridevirtual |
Implements agxCollide::Shape.
| bool agxCollide::Mesh::hasHalfEdge | ( | ) | const |
| bool agxCollide::Mesh::hasInternalCenterPoint | ( | ) | const |
|
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().
| bool agxCollide::Mesh::isConvexEdge | ( | size_t | globalEdgeIndex | ) | const |
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? |
| bool agxCollide::Mesh::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.
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().
| bool agxCollide::Mesh::isTerrain | ( | ) | const |
| bool agxCollide::Mesh::isValid | ( | ) | const |
| bool agxCollide::Mesh::isValidAndClosed | ( | ) | const |
| bool agxCollide::Mesh::isValidEdgeIndex | ( | size_t | globalEdgeIndex | ) | const |
| bool agxCollide::Mesh::isValidTriangleIndex | ( | size_t | globalTriangleIndex | ) | const |
|
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.
|
overrideprotected |
|
staticprotectedinherited |
Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
|
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.
|
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!
|
overrideprotected |
|
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.
|
overridevirtual |
Calculate the bounding volume based on the current Shape parameters including transformation.
Implements agxCollide::Shape.
|
protectedpure virtual |
Implemented in agxCollide::Trimesh.
|
staticinherited |
|
protected |
|
protectedinherited |
|
protected |
|
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 |