Skip to content

[Core] Merge Context into BaseContext - #6266

Open
damienmarchal wants to merge 3 commits into
sofa-framework:masterfrom
CRIStAL-PADR:pr-merge-context-basecontext
Open

[Core] Merge Context into BaseContext#6266
damienmarchal wants to merge 3 commits into
sofa-framework:masterfrom
CRIStAL-PADR:pr-merge-context-basecontext

Conversation

@damienmarchal

@damienmarchal damienmarchal commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

The Context class is the only implementation of BaseContext.
This extra layer is probably over-engineered, so I merge the two.
Ideally BaseContext should have been merged down into Context.... but given that it would generate a huge amount of code change I prefer to merge Context up in BaseContext.

[ci-depends-on https://github.com/https://github.com/sofa-framework/SofaPython3/pull/636]


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).

damienmarchal and others added 2 commits August 27, 2026 15:49
- BaseContext is now a concrete class with Data members (is_activated, worldGravity_,
  dt_, time_, animate_, d_isSleeping, d_canChangeSleepingState)
- All Context methods implemented in BaseContext
- Node now inherits directly from BaseNode and BaseContext (instead of Context)
- Context class kept as compatibility layer, inheriting from BaseContext
- Updated includes in Contact.h, UniformMass.inl, VisualStyle.cpp, Main.cpp
- Fixed casts in Node.cpp to use BaseContext instead of Context

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
@damienmarchal damienmarchal added pr: status to review To notify reviewers to review this pull-request pr: refactoring Refactor code labels Aug 27, 2026
@damienmarchal damienmarchal added the pr: AI-aided Label notifying the reviewers that part or all of the PR has been generated with the help of an AI label Aug 27, 2026
@damienmarchal damienmarchal changed the title Merge Context into BaseContext [CORE] Merge Context into BaseContext Aug 27, 2026
@damienmarchal damienmarchal added the pr: breaking Change possibly inducing a compilation error label Aug 27, 2026
@damienmarchal damienmarchal changed the title [CORE] Merge Context into BaseContext [Core] Merge Context into BaseContext Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: AI-aided Label notifying the reviewers that part or all of the PR has been generated with the help of an AI pr: breaking Change possibly inducing a compilation error pr: refactoring Refactor code pr: status to review To notify reviewers to review this pull-request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant