Either use : https://github.com/InfinyTech3D/sofa/blob/master/Sofa/framework/Core/src/sofa/core/behavior/SingleStateAccessor.h
meaning you need to inherite from SingleStateAccessor like for example: https://github.com/InfinyTech3D/sofa/blob/master/Sofa/Component/Constraint/Projective/src/sofa/component/constraint/projective/FixedProjectiveConstraint.h
Or you can set your own Link like here:
|
SingleLink<DiagonalMass<DataTypes, GeometricalTypes>, sofa::core::behavior::MechanicalState<GeometricalTypes>, BaseLink::FLAG_STOREPATH | BaseLink::FLAG_STRONGLINK> l_geometryState; |
Either use : https://github.com/InfinyTech3D/sofa/blob/master/Sofa/framework/Core/src/sofa/core/behavior/SingleStateAccessor.h
meaning you need to inherite from
SingleStateAccessorlike for example: https://github.com/InfinyTech3D/sofa/blob/master/Sofa/Component/Constraint/Projective/src/sofa/component/constraint/projective/FixedProjectiveConstraint.hOr you can set your own Link like here:
sofa/Sofa/Component/Mass/src/sofa/component/mass/DiagonalMass.h
Line 119 in 5945d22