diff --git a/src/BeamAdapter/component/constraint/AdaptiveBeamLengthConstraint.h b/src/BeamAdapter/component/constraint/AdaptiveBeamLengthConstraint.h index a2f30752f..1604c5912 100644 --- a/src/BeamAdapter/component/constraint/AdaptiveBeamLengthConstraint.h +++ b/src/BeamAdapter/component/constraint/AdaptiveBeamLengthConstraint.h @@ -25,7 +25,7 @@ #include #include -#include +#include #include #include @@ -34,7 +34,7 @@ namespace beamadapter { using sofa::core::behavior::ConstraintResolution ; -using sofa::core::behavior::Constraint ; +using sofa::core::behavior::LagrangianConstraint; using sofa::core::behavior::MechanicalState ; using sofa::core::ConstraintParams ; using sofa::core::objectmodel::Data ; @@ -79,11 +79,11 @@ class IntervalDefinition * https://www.sofa-framework.org/community/doc/programming-with-sofa/components-api/components-and-datas/ */ template -class AdaptiveBeamLengthConstraint : public Constraint +class AdaptiveBeamLengthConstraint : public LagrangianConstraint { public: SOFA_CLASS(SOFA_TEMPLATE(AdaptiveBeamLengthConstraint,DataTypes), - SOFA_TEMPLATE(Constraint,DataTypes)); + SOFA_TEMPLATE(LagrangianConstraint,DataTypes)); typedef typename DataTypes::VecCoord VecCoord; typedef typename DataTypes::VecDeriv VecDeriv; @@ -99,7 +99,7 @@ class AdaptiveBeamLengthConstraint : public Constraint typedef typename std::map::iterator MapIterator; typedef MechanicalState TypedMechanicalState; - typedef Constraint Inherit; + typedef LagrangianConstraint Inherit; typedef Data DataVecCoord; typedef Data DataVecDeriv; typedef Data DataMatrixDeriv;