Skip to content

Replace mechanicalObject pointer by SOFA Link #17

@epernod

Description

@epernod

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;

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions