Skip to content

[Framework] Apply template method design pattern to BaseMaterial#5439

Open
NiziL wants to merge 4 commits intosofa-framework:masterfrom
NiziL:2025_sedsprint_BaseMaterial
Open

[Framework] Apply template method design pattern to BaseMaterial#5439
NiziL wants to merge 4 commits intosofa-framework:masterfrom
NiziL:2025_sedsprint_BaseMaterial

Conversation

@NiziL
Copy link
Copy Markdown

@NiziL NiziL commented May 12, 2025

SED Sprint 2025

Base class BaseMaterial, function modified:

  • computeStress (type::Vec3 & stress, type::Vec3 & strain, unsigned int & elementIndex)
  • computeDStress (type::Vec3 & dstress, type::Vec3 & dstrain)
  • computeStress (unsigned int elementIndex)

Child classes modified:

  • Sofa: components
    • PlasticMaterial

By submitting this pull request, I acknowledge that
I have read, understand, and agree SOFA Developer Certificate of Origin (DCO).


Reviewers will merge this pull-request only if

  • it builds with SUCCESS for all platforms on the CI.
  • it does not generate new warnings.
  • it does not generate new unit test failures.
  • it does not generate new scene test failures.
  • it does not break API compatibility.
  • it is more than 1 week old (or has fast-merge label).

@NiziL NiziL added pr: breaking Change possibly inducing a compilation error pr: status wip Development in the pull-request is still in progress refactoring Refactor code labels May 12, 2025
@NiziL
Copy link
Copy Markdown
Author

NiziL commented May 12, 2025

[ci-build][with-all-tests]

@bakpaul bakpaul added pr: status to review To notify reviewers to review this pull-request and removed pr: status wip Development in the pull-request is still in progress labels Jan 6, 2026
@bakpaul bakpaul self-assigned this Jan 6, 2026
bakpaul added a commit that referenced this pull request Apr 10, 2026
commit 370b6c4
Merge: 8d4aacd 912335e
Author: Paul Baksic <30337881+bakpaul@users.noreply.github.com>
Date:   Fri Apr 10 09:25:36 2026 +0200

    Merge branch 'master' into 2025_sedsprint_BaseMaterial

commit 8d4aacd
Merge: a099baa fb6ac6c
Author: Paul Baksic <30337881+bakpaul@users.noreply.github.com>
Date:   Tue Jan 6 11:42:09 2026 +0100

    Merge branch 'master' into 2025_sedsprint_BaseMaterial

commit a099baa
Author: Théo BL <theo.biasutto-lervat@inria.fr>
Date:   Mon May 12 15:22:49 2025 +0200

    refacto: ensure naming consistency

commit e20ce58
Author: Théo BL <theo.biasutto-lervat@inria.fr>
Date:   Mon May 12 15:17:53 2025 +0200

    feat(sed_sprint): apply template method to BaseMaterial
@bakpaul bakpaul added pr: status wip Development in the pull-request is still in progress and removed pr: status to review To notify reviewers to review this pull-request labels Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: breaking Change possibly inducing a compilation error pr: status wip Development in the pull-request is still in progress refactoring Refactor code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants