2525#include < sofa/helper/map.h>
2626
2727#include < sofa/core/behavior/MechanicalState.h>
28- #include < sofa/core/behavior/Constraint .h>
28+ #include < sofa/core/behavior/LagrangianConstraint .h>
2929#include < sofa/defaulttype/SolidTypes.h>
3030#include < sofa/type/Vec.h>
3131
3434namespace beamadapter
3535{
3636using sofa::core::behavior::ConstraintResolution ;
37- using sofa::core::behavior::Constraint ;
37+ using sofa::core::behavior::LagrangianConstraint ;
3838using sofa::core::behavior::MechanicalState ;
3939using sofa::core::ConstraintParams ;
4040using sofa::core::objectmodel::Data ;
@@ -79,11 +79,11 @@ class IntervalDefinition
7979 * https://www.sofa-framework.org/community/doc/programming-with-sofa/components-api/components-and-datas/
8080 */
8181template <class DataTypes >
82- class AdaptiveBeamLengthConstraint : public Constraint <DataTypes>
82+ class AdaptiveBeamLengthConstraint : public LagrangianConstraint <DataTypes>
8383{
8484public:
8585 SOFA_CLASS (SOFA_TEMPLATE(AdaptiveBeamLengthConstraint,DataTypes),
86- SOFA_TEMPLATE (Constraint ,DataTypes));
86+ SOFA_TEMPLATE (LagrangianConstraint ,DataTypes));
8787
8888 typedef typename DataTypes::VecCoord VecCoord;
8989 typedef typename DataTypes::VecDeriv VecDeriv;
@@ -99,7 +99,7 @@ class AdaptiveBeamLengthConstraint : public Constraint<DataTypes>
9999 typedef typename std::map<Real, double >::iterator MapIterator;
100100
101101 typedef MechanicalState<DataTypes> TypedMechanicalState;
102- typedef Constraint <DataTypes> Inherit;
102+ typedef LagrangianConstraint <DataTypes> Inherit;
103103 typedef Data<VecCoord> DataVecCoord;
104104 typedef Data<VecDeriv> DataVecDeriv;
105105 typedef Data<MatrixDeriv> DataMatrixDeriv;
0 commit comments