32 class GeometryContactPtr;
39 class WireDistanceCompositeConstraint;
50 class AGXPHYSICS_EXPORT WireShapeContactController :
public agxWire::WireContactController
53 WireShapeContactController( Wire* wire );
55 static BodyFixedNode* changeToBodyFixed(ShapeContactNode* cn, Wire* wire);
59 void removeLumpedNodesTooClose();
61 void findExtraLength();
63 void analyzePossibleBodyFixReplacement();
67 virtual void preCollideUpdate();
68 virtual void preUpdate();
69 virtual void postUpdate();
71 struct SurfacePointData
79 : point( surfacePoint ),
82 geometryContact( geometryContact ),
83 pointIndex( pointIndex ),
84 isFaceContact( isFaceContact )
99 virtual ~WireShapeContactController();
101 void movePenetratingContactNodesBackAlongEdges(NodeShapeSetVector& nodesToShapeList);
106 agx::Bool findSurfacePosition( ShapeContactNode* cn )
const;
110 void chooseAndClampNodeEdges(
ContactNodeDataList& nodes, NodeShapeSetVector& nodesToShapes);
117 agx::Bool evaluateMiddleContact(
const ShapeContactNode* prevContact,
const ShapeContactNode* middleContact,
const ShapeContactNode* nextContact,
agx::Bool& dueToPrev)
const;
118 agx::Bool shouldContactBecomeBodyFixed(ContactNodeDataList::iterator nodeDataIterator)
const;
119 void analyzeContactState(ContactNodeDataList::iterator nodeDataIterator,
ContactNodeDataList& nodeDataList)
const;
120 void validateContact(ContactNodeDataList::iterator nodeDataIterator,
const agx::Bool ignoreClampedPosition =
false)
const;
121 agx::Bool evaluateCloseContact(
const ShapeContactNode* closeContact,
123 const ShapeCurvature& worldCurvature,
125 agx::Bool evaluateCloseContact(
const ShapeContactNode* closeContact,
127 const ShapeCurvature& worldCurvature,
133 void createNewContactNodes(NodeShapeSetVector& nodesToShapeList);
135 void collectPossibleEdges(ShapeContactNode* scn,
agxCollide::Shape* shape, ShapeContactEdgeVector& possibleEdges);
141 void chooseAndClampNodeEdge(ContactNodeData& cnData,
const NodeShapeSetVector& nodesToShapes);
145 agx::Bool mergeNodes(NodeMergePairHashVector& nodesToMerge);
147 agx::Bool findWhichNodeToRemoveByMerge(ShapeContactNode* firstContact, ShapeContactNode* secondContact,
const Node* prevNode,
const Node* nextNode)
const;
149 agx::Bool isClamped(ShapeContactNode* cn);
151 agx::Bool merge(ShapeContactNode* a, ShapeContactNode* b, Node* prevNode, Node* nextNode);
153 void fixFreeEndContactPassings(WireDistanceCompositeConstraint* ldcc);
154 agx::Bool nearClampPosition(
const ShapeContactNode* scn)
const;
155 agx::Bool atClampPosition(
const ShapeContactNode* scn)
const;
160 agx::Bool considerNewEdge(
const ShapeContactNode* scn,
const ShapeContactEdge& edge)
const;
168 void getNewNodeVelocities(
agx::Bool integrate);
176 enum class EvaluationResult
180 CREATE_GEOMETRY_CONTACT_PREV,
181 CREATE_GEOMETRY_CONTACT_NEXT
184 bool verifyBothAreNeeded(
const ShapeContactNode* otherContact,
185 const Node* behindOtherContact,
186 const Node* behindNewNode,
192 const ShapeCurvature& worldCurvature,
198 const agx::Bool favorLumpSphereContacts =
true )
const;
200 NodePtrGeometryContactVectorTable m_nodeGeometryContactTable;
#define AGXPHYSICS_EXPORT
The geometry representation used by the collision detection engine.
Inheritance with partial specialization due to bug with ref_ptr containers.
This class is a combined container which has the find complexity of a HashTable, deterministic iterat...
Inheritance with partial specialization due to bug with ref_ptr containers.
Smart pointer for handling referenced counted objects.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
This namespace consists of a set of classes for handling geometric intersection tests including boole...
agx::Vector< GeometryContact > GeometryContactVector
Implements a Wire model with adaptive resolution.
NodeRefListA NodeContainer
NodeContainer::const_iterator NodeConstIterator
agx::List< ContactNodeData > ContactNodeDataList
NodeContainer::iterator NodeIterator