-
Notifications
You must be signed in to change notification settings - Fork 342
[Core] Introduction of TopologyAccessor #5824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
c3e21eb
Introduce topology accessor
alxbilger 296b677
use TopologyAccessor in BaseLinearElasticityFEMForceField
alxbilger 9337aa4
use TopologyAccessor in QuadBendingFEMForceField
alxbilger a3c9501
use TopologyAccessor in UniformMass
alxbilger 549d9b9
use TopologyAccessor in MeshMatrixMass
alxbilger 081d32d
use TopologyAccessor in DiagonalMass
alxbilger 737b0eb
update SOFA_CLASS
alxbilger 436d521
check parameters only if component state is not invalid
alxbilger 565007b
early return instead
alxbilger 07a0c16
Merge branch 'master' into topologyaccessor
epernod File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,26 +20,24 @@ | |
| * Contact information: [email protected] * | ||
| ******************************************************************************/ | ||
| #pragma once | ||
| #include <sofa/component/mass/RigidMassType.h> | ||
| #include <sofa/component/mass/VecMassType.h> | ||
| #include <sofa/component/mass/config.h> | ||
|
|
||
| #include <sofa/defaulttype/VecTypes.h> | ||
| #include <sofa/core/behavior/Mass.h> | ||
| #include <sofa/core/behavior/MechanicalState.h> | ||
| #include <sofa/linearalgebra/BaseVector.h> | ||
| #include <sofa/core/behavior/TopologyAccessor.h> | ||
| #include <sofa/core/objectmodel/DataFileName.h> | ||
| #include <sofa/core/topology/BaseMeshTopology.h> | ||
| #include <sofa/core/topology/TopologySubsetIndices.h> | ||
|
|
||
| #include <sofa/component/mass/VecMassType.h> | ||
| #include <sofa/component/mass/RigidMassType.h> | ||
| #include <sofa/defaulttype/VecTypes.h> | ||
| #include <sofa/linearalgebra/BaseVector.h> | ||
|
|
||
| #include <type_traits> | ||
|
|
||
| namespace sofa::component::mass | ||
| { | ||
|
|
||
| template <class DataTypes> | ||
| class UniformMass : public core::behavior::Mass<DataTypes> | ||
| class UniformMass : public core::behavior::Mass<DataTypes>, public virtual core::behavior::TopologyAccessor | ||
| { | ||
| public: | ||
| SOFA_CLASS(SOFA_TEMPLATE(UniformMass,DataTypes), | ||
|
|
@@ -90,10 +88,6 @@ class UniformMass : public core::behavior::Mass<DataTypes> | |
| using core::objectmodel::BaseObject::getContext; | ||
| //////////////////////////////////////////////////////////////////////////// | ||
|
|
||
|
|
||
| /// Link to be set to the topology container in the component graph. | ||
| SingleLink <UniformMass<DataTypes>, sofa::core::topology::BaseMeshTopology, BaseLink::FLAG_STOREPATH | BaseLink::FLAG_STRONGLINK> l_topology; | ||
|
|
||
| protected: | ||
| UniformMass(); | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.