40 WireSplitNode( BodyFixedNode* node,
size_t weight,
agx::Index index );
42 virtual void setChoosenToSplit(
bool splittable)
override;
46 static size_t singleNodeSolveCost() {
return size_t(25); }
48 virtual ~WireSplitNode();
61 WireSplitAlgorithm(
agxWire::Wire* wire,
size_t splitInfectedDistance = 1 );
63 virtual void collectSplitInformation( agx::Physics::GraphNodeData* graphNode )
override;
65 virtual bool getSplitEnabled( NodeConstIterator bfnIt )
const;
67 virtual void clearSplitState()
override;
69 virtual void postSolveCleanup()
override;
72 virtual ~WireSplitAlgorithm() {}
74 bool createSplitNode(NodeConstIterator it,
size_t weight);
75 bool createSplitSeparatorNode( agx::Physics::GraphNodeData* graphNode, NodeConstIterator it);
76 bool updateSplitInfo( agx::Physics::GraphNodeData* graphNode, NodeConstIterator firstSplitNode,
const size_t numAllowedConnections = 5 );
78 NodeConstIterator findNextSplitNodeOrSeparator( agx::Physics::GraphNodeData* graphNode,
79 const NodeContainer& nodes,
80 const NodeConstIterator previousSplitnode,
81 const NodeConstIterator itEnd,
82 const size_t numAllowedConnections );
84 NodeConstIterator findNextPossibleSplitNodeIterator(
const agx::Physics::GraphNodeData* graphNode,
85 const NodeContainer& nodes,
87 const NodeConstIterator itEnd,
88 const size_t numAllowedConnections = 5);
#define AGXPHYSICS_EXPORT
Interface and placeholder of controllers/helpers for wires.
The rigid body class, combining a geometric model and a frame of reference.
Smart pointer for handling referenced counted objects.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
Implements a Wire model with adaptive resolution.
NodeContainer::const_iterator NodeConstIterator
The agx namespace contains the dynamics/math part of the AGX Dynamics API.