3 #include <sofa/simulation/MechanicalVisitor.h>
5 namespace SofaCaribou::visitor {
23 using Base = sofa::simulation::MechanicalVisitor;
24 using MechanicalParams = sofa::core::MechanicalParams;
25 using MultiMatrixAccessor = sofa::core::behavior::MultiMatrixAccessor;
29 : Base(mparams), p_multi_matrix(matrix) {}
31 Result fwdForceField(sofa::simulation::Node* node, sofa::core::behavior::BaseForceField* ff)
override;
33 bool stopAtMechanicalMapping(sofa::simulation::Node* node, sofa::core::BaseMapping* map)
override;
35 const char* getClassName()
const override {
return "AssembleGlobalMatrix"; }
37 const sofa::core::behavior::MultiMatrixAccessor * p_multi_matrix;