AGX Dynamics  2.35.0.1
LineCollisionUtils.h File Reference
#include <agx/Math.h>
#include <agx/Vec3.h>
#include <agx/Vec4.h>
#include <agx/Quat.h>
#include <agx/AffineMatrix4x4.h>
#include <agxCollide/Mesh.h>

Go to the source code of this file.

Classes

class  agxSDK::LineContactEdge
 
class  agxSDK::LineContactPosition
 

Namespaces

 agxSDK
 The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simulation system including Material, event listeners etc.
 

Functions

static agx::Vec3 agxSDK::calculateBoxOffset (const agx::Vec3 &shapeEdge, const agx::Vec3 &shapeContactPosition, agx::Real radius)
 
static agx::Vec3 agxSDK::calculateCylinderOffset (const agx::Vec3 &shapeEdge, const agx::Vec3 &shapeContactPosition, agx::Real radius)
 
static agx::Vec3 agxSDK::calculateMeshOffset (const agxCollide::Mesh *mesh, const size_t triangleIndex, const uint8_t edgeIndex, const agx::Vec3 &, const agx::Real radius)
 
static void agxSDK::copyVectors (agx::Vec3Vector &newContactShapeTranslates, const agx::Vec3Vector &newContactShapeTranslatesB, agx::Vector< size_t > &newTriangleIndices, const agx::Vector< size_t > &newTriangleIndicesB, agx::Vector< size_t > &newEdgeIndices, const agx::Vector< size_t > &newEdgeIndicesB)
 
static void agxSDK::fillEdgeVector (agx::Vector< std::pair< agx::Vec3, agx::Vec3 > > &v, const agx::Vec3 &halfExtent)
 
static agx::Real agxSDK::findAdjustmentForMeshEdge (const agx::Vec3 &lineEndW, const agx::Vec3 &lineStartW, const agx::Vec3 &edgeStart, const agx::Vec3 &edgeEnd, agx::Real lineRadius)
 Shorten the movement range due to neighboring triangles. More...
 
static agx::Real agxSDK::findDistanceFromPointToLine (const agx::Vec3 &L1, const agx::Vec3 &L2, const agx::Vec3 &P)
 
static void agxSDK::findMostParallelEdgeAmongNeighboringTriangles (const agxCollide::Mesh *mesh, const agx::Vec3 &, const size_t triangleIndex, const uint8_t edgeIndex, size_t &tempNewTriangleStartIndex, size_t &tempNewEdgeLocalStartIndex, const bool atBegin)
 
static bool agxSDK::findPlaneLineSegmentIntersection (const agx::Vec3 &A, const agx::Vec3 &B, const agx::Vec3 &planeOrigin, const agx::Vec3 &planeNormal, agx::Real nearEndsThreshold, agx::Vec3 &Q)
 
static bool agxSDK::findSegmentCircleIntersection3D (const agx::Vec3 &A, const agx::Vec3 &B, const agx::Vec3 &circleOrigin, const agx::Vec3 &circleNormal, agx::Real circleRadius, agx::Real nearEndsThreshold, agx::Vec3 &intersectionPoint)
 
static bool agxSDK::findSegmentCircleIntersections2D (const agx::Vec3 &A, const agx::Vec3 &B, const agx::Vec3 &circlePos, agx::Real radius, agx::Vec3 &Q1, agx::Vec3 &Q2, bool &Q1Found, bool &Q2Found, const agx::Real epsilon=agx::AGX_EQUIVALENT_EPSILON)
 
static uint8_t agxSDK::getEdgeEndLocalVertexIndex (const uint8_t localEdgeIndex, const bool atBegin)
 
static uint8_t agxSDK::getEdgeStartLocalVertexIndex (const uint8_t localEdgeIndex, const bool atBegin)
 
static agx::AffineMatrix4x4 agxSDK::getFuturePosition (const agx::Vec3 &velocity, const agx::Vec3 &angularVelocity, const agx::Vec3 &position, const agx::Quat &rotation, agx::Real time)
 
static uint8_t agxSDK::getLocalEdgeIndexFromVertexIndices (const size_t iteratedVertexIndex, const size_t oppositeVertexIndex)
 
static agx::Vec3 agxSDK::getProjection (const agx::Vec3 contactPoint, agx::Vec3 edge, bool normalizedEdge=false)
 
static agx::Vec3 agxSDK::getSigned (const agx::Vec3 &v)
 
static agx::Real agxSDK::getTotalAngleShapeCoordinates (agx::Vec3 edge, agx::Vec3 contactToCenter, const agx::Vec3 &pos1, const agx::Vec3 &pos2, const agx::Vec3 &pos3, bool &onSameEdge)
 
static bool agxSDK::inBound (agx::Real val, agx::Real boundLower, agx::Real boundUpper, agx::Real threshold=agx::Real(1E-6))
 
static bool agxSDK::pointInsideCircle (const agx::Vec3 &point, const agx::Vec3 &circleOrigin, agx::Real radius)
 
static agx::Real agxSDK::scalarTripleProduct (const agx::Vec3 &p, const agx::Vec3 &q, const agx::Vec3 &r)