Skip to content
Unstable

Changes

Summary

  1. [Sofa.GUI.Common] Handle object selection in BaseViewer (#5636) (details)
  2. [all] Lifecycle v25.12 : disable deprecated attributes (#5659) (details)
  3. [all] Fix warnings (#5660) (details)
  4. [Plugins] Remove SofaAssimp from sources and pluginize it (#5653) (details)
  5. [CImgPlugin] Fix configuration when cmake is reloaded without the fetched dir (#5683) (details)
  6. [Mapping.Linear] BarycentricMappingTopologyContainerMapper: use array for barycentric coefficients (#5628) (details)
  7. [Sofa.Core] Merge DAGNode in Node (#5566) (details)
  8. [Mapping.Linear] BarycentricMappingTopologyContainerMapper: Various cleanups (#5630) (details)
  9. [Type] Vec: update equality methods (#5635) (details)
  10. [Core] ObjectFactory: fix warning about string concatenation (#5678) (details)
  11. [Sofa.Gui.Common] Fix invalid rendering of Node when selected. (#5687) (details)
  12. [SofaCUDA] adding support for CUDA 13.0: remove deprecated API usage (#5686) (details)
Commit cc263efbdaa2e7919e8dea9ae73bde408a0c2ff2 by noreply
[Sofa.GUI.Common] Handle object selection in BaseViewer (#5636)

* Add a way to handle object selection in viewer.

It is usefull to be able to handle the currently selected object in the viewer to
implement visual feedbacks. This is done by adding a vector of selected node/object
as well as a drawSelection method to do the rendering.

* Replace std::vector with std::set

* FIXUP

* Add configuration parameters to control the selectionDrawing

* Update BaseViewer.cpp

Remove commented code.

* Update BaseViewer.cpp

Integrate comments

* Update Sofa/GUI/Common/src/sofa/gui/common/BaseViewer.cpp

Co-authored-by: Hugo <hugo.talbot@sofa-framework.org>

* Update Sofa/GUI/Common/src/sofa/gui/common/BaseViewer.cpp

---------

Co-authored-by: Hugo <hugo.talbot@sofa-framework.org>
The file was modified Sofa/GUI/Common/src/sofa/gui/common/BaseViewer.h (diff)
The file was modified Sofa/GUI/Common/src/sofa/gui/common/BaseViewer.cpp (diff)
Commit 2a1a23d357e8533091039b4bdb88f98ba40d5679 by noreply
[all] Lifecycle v25.12 : disable deprecated attributes (#5659)

* [all] Lifecycle v25.12 : disable attributes

* disable onSetUp and remove use of findOrCreateAValidPath

* Fix NewtonRaphsonSolver_test.cpp

* fix compilation MechanicalObjectVOp_test
The file was modified Sofa/framework/Core/src/sofa/core/behavior/BaseLagrangianConstraint.h (diff)
The file was modified Sofa/framework/Testing/src/sofa/testing/BaseTest.cpp (diff)
The file was modified Sofa/framework/Testing/src/sofa/testing/config.h.in (diff)
The file was modified Sofa/GUI/Common/src/sofa/gui/common/config.h.in (diff)
The file was modified Sofa/framework/Helper/src/sofa/helper/system/FileSystem.cpp (diff)
The file was modified Sofa/Component/StateContainer/tests/MechanicalObjectVOp_test.cpp (diff)
The file was modified Sofa/Component/ODESolver/Backward/src/sofa/component/odesolver/backward/StaticSolver.h (diff)
The file was modified Sofa/Component/ODESolver/Backward/tests/NewtonRaphsonSolver_test.cpp (diff)
The file was modified Sofa/framework/Simulation/Core/src/sofa/simulation/BaseSimulationExporter.cpp (diff)
The file was modified Sofa/Component/ODESolver/Backward/src/sofa/component/odesolver/backward/config.h.in (diff)
The file was modified Sofa/framework/Helper/src/sofa/helper/system/FileSystem.h (diff)
The file was modified Sofa/Component/Constraint/Lagrangian/Model/src/sofa/component/constraint/lagrangian/model/BilateralLagrangianConstraint.h (diff)
The file was modified Sofa/framework/Helper/src/sofa/helper/config.h.in (diff)
The file was modified Sofa/Component/Constraint/Lagrangian/Model/src/sofa/component/constraint/lagrangian/model/config.h.in (diff)
The file was modified Sofa/framework/Core/src/sofa/core/behavior/BaseLagrangianConstraint.cpp (diff)
The file was modified Sofa/framework/Core/src/sofa/core/config.h.in (diff)
The file was modified Sofa/framework/Testing/src/sofa/testing/BaseTest.h (diff)
The file was modified Sofa/GUI/Common/src/sofa/gui/common/OperationFactory.h (diff)
Commit 64e5dbbe9ecfc95ca9ab6dff965f1398c9f2c7f2 by noreply
[all] Fix warnings (#5660)

* [all] Fix warnings

* Update Sofa/Component/SolidMechanics/FEM/NonUniform/src/sofa/component/solidmechanics/fem/nonuniform/NonUniformHexahedronFEMForceFieldAndMass.inl

---------

Co-authored-by: Frederick Roy <fredroy@users.noreply.github.com>
The file was modified Sofa/Component/Constraint/Lagrangian/Correction/src/sofa/component/constraint/lagrangian/correction/GenericConstraintCorrection.cpp (diff)
The file was modified Sofa/framework/Simulation/Core/src/sofa/simulation/mechanicalvisitor/MechanicalVMultiOpVisitor.cpp (diff)
The file was modified Sofa/Component/IO/Mesh/src/sofa/component/io/mesh/VTKExporter.cpp (diff)
The file was modified Sofa/Component/SolidMechanics/FEM/NonUniform/src/sofa/component/solidmechanics/fem/nonuniform/NonUniformHexahedronFEMForceFieldAndMass.inl (diff)
The file was modified Sofa/Component/Constraint/Lagrangian/Correction/src/sofa/component/constraint/lagrangian/correction/LinearSolverConstraintCorrection.inl (diff)
The file was modified Sofa/Component/ODESolver/Backward/src/sofa/component/odesolver/backward/BDFOdeSolver.cpp (diff)
Commit 17440b84d69bd3256b5985ee7e0142af1bc5e3c3 by noreply
[Plugins] Remove SofaAssimp from sources and pluginize it (#5653)

* Remove SofaAssimp from sources and pluginize it

* Propagate changes into CMakeLists.txt
The file was removedapplications/plugins/SofaAssimp/doc/skinning_example_modeler.png
The file was removedapplications/plugins/SofaAssimp/initAssimpPlugin.cpp
The file was removedapplications/plugins/SofaAssimp/examples/example.dae
The file was removedapplications/plugins/SofaAssimp/examples/scene.dae.basic
The file was removedapplications/plugins/SofaAssimp/SofaAssimpConfig.cmake.in
The file was removedapplications/plugins/SofaAssimp/examples/basic.dae
The file was removedapplications/plugins/SofaAssimp/SceneColladaLoader.h
The file was removedapplications/plugins/SofaAssimp/doc/index.html
The file was removedapplications/plugins/SofaAssimp/doc/skinning_example_0_5.png
The file was removedapplications/plugins/SofaAssimp/examples/character_clothes.py
The file was removedapplications/plugins/SofaAssimp/ColladaSceneLoader.html
The file was removedapplications/plugins/SofaAssimp/SceneColladaLoader.cpp
The file was removedapplications/plugins/SofaAssimp/examples/SceneColladaLoader.scn
The file was removedapplications/plugins/SofaAssimp/doc/skinning_example_2_0.png
The file was removedapplications/plugins/SofaAssimp/doc/skinning_example_3_0.png
The file was removedapplications/plugins/SofaAssimp/examples/.scene-tests
The file was removedapplications/plugins/SofaAssimp/examples/scene.dae.girafe
The file was removedapplications/plugins/SofaAssimp/doc/skinning_example_0_4.png
The file was removedapplications/plugins/SofaAssimp/CMakeLists.txt
The file was removedapplications/plugins/SofaAssimp/doc/skinning_example_0_0.png
The file was removedapplications/plugins/SofaAssimp/AssimpLoader.cpp
The file was removedapplications/plugins/SofaAssimp/examples/scene.dae.human
The file was removedapplications/plugins/SofaAssimp/doc/skinning_example_0_1.png
The file was removedapplications/plugins/SofaAssimp/doc/skinning_example_0_3.png
The file was removedapplications/plugins/SofaAssimp/README_AssimpPlugin.txt
The file was removedapplications/plugins/SofaAssimp/examples/scene.dae.joints
The file was removedapplications/plugins/SofaAssimp/examples/mesh/Sofa.fbx
The file was removedapplications/plugins/SofaAssimp/config.h
The file was removedapplications/plugins/SofaAssimp/examples/scene.dae.torsion
The file was removedapplications/plugins/SofaAssimp/examples/AssimpFbxLoader.scn
The file was removedapplications/plugins/SofaAssimp/examples/cube.obj
The file was removedapplications/plugins/SofaAssimp/examples/scene.dae.gobelin
The file was removedapplications/plugins/SofaAssimp/examples/AssimpObjLoader.scn
The file was removedapplications/plugins/SofaAssimp/doc/skinning_example_1_0.png
The file was modified applications/plugins/CMakeLists.txt (diff)
The file was removedapplications/plugins/SofaAssimp/cmake/Findassimp.cmake
The file was removedapplications/plugins/SofaAssimp/AssimpLoader.h
Commit 20d3d7bdf5e1b03c09aa557d32490ca50669b85c by noreply
[CImgPlugin] Fix configuration when cmake is reloaded without the fetched dir (#5683)

Fix configuration when cmake is reloaded without the fetched dir
The file was modified applications/plugins/CImgPlugin/cmake/FindCImg.cmake (diff)
Commit 8a2ea19c177f14b4b4094c9cb0ffb2d00501fb6e by noreply
[Mapping.Linear] BarycentricMappingTopologyContainerMapper: use array for barycentric coefficients (#5628)

* add new function to create array of baryCoeff (and not dynamic vector)

* remove dynamic vector version

* add perf bench scenes

* rename parameter

* replace sreal with real in return type
The file was modified Sofa/Component/Mapping/Linear/src/sofa/component/mapping/linear/BarycentricMappers/BarycentricMapperQuadSetTopology.h (diff)
The file was modified Sofa/Component/Mapping/Linear/src/sofa/component/mapping/linear/BarycentricMappers/BarycentricMapperTopologyContainer.h (diff)
The file was addedexamples/Benchmark/Performance/BarycentricMapping_sparsegrid.scn
The file was modified Sofa/Component/Mapping/Linear/src/sofa/component/mapping/linear/BarycentricMappers/BarycentricMapperQuadSetTopology.inl (diff)
The file was modified Sofa/Component/Mapping/Linear/src/sofa/component/mapping/linear/BarycentricMappers/BarycentricMapperTriangleSetTopology.inl (diff)
The file was modified Sofa/Component/Mapping/Linear/src/sofa/component/mapping/linear/BarycentricMappers/BarycentricMapperEdgeSetTopology.inl (diff)
The file was modified Sofa/Component/Mapping/Linear/src/sofa/component/mapping/linear/BarycentricMappers/BarycentricMapperHexahedronSetTopology.inl (diff)
The file was modified Sofa/Component/Mapping/Linear/src/sofa/component/mapping/linear/BarycentricMappers/BarycentricMapperTriangleSetTopology.h (diff)
The file was modified Sofa/Component/Mapping/Linear/src/sofa/component/mapping/linear/BarycentricMappers/BarycentricMapperEdgeSetTopology.h (diff)
The file was modified Sofa/Component/Mapping/Linear/src/sofa/component/mapping/linear/BarycentricMappers/BarycentricMapperTetrahedronSetTopology.inl (diff)
The file was addedexamples/Benchmark/Performance/BarycentricMapping_meshtopology.scn
The file was modified Sofa/Component/Mapping/Linear/src/sofa/component/mapping/linear/BarycentricMappers/BarycentricMapperTopologyContainer.inl (diff)
The file was modified Sofa/Component/Mapping/Linear/src/sofa/component/mapping/linear/BarycentricMappers/BarycentricMapperTetrahedronSetTopology.h (diff)
The file was modified Sofa/Component/Mapping/Linear/src/sofa/component/mapping/linear/BarycentricMappers/BarycentricMapperHexahedronSetTopology.h (diff)
The file was addedexamples/Benchmark/Performance/BarycentricMapping_topologycontainer.scn
Commit 7986776a7760f13e2b89fc5f7cf3c819433086b7 by noreply
[Sofa.Core] Merge DAGNode in Node (#5566)

* Merge DAGNode in Node

* Use Node in place of DAGNode in sofa's code.

* Copy past content of DAGNode in Node

* FIXUP forward declaration of BaseMechanicalstate

* FIX Node refactoring invalid merge.

* Clean of the integration of DAGNode into Node

Important things are:
- integration of NODEgetMeshTopologyLink into getMeshTopologyLink

- refactoring of updateContext, updateVisualContext and updateSimulationContext
Some code was shared between them.. so I factorize that into a new method called initializeContexts()

non important things are removal of un-needed static_cast<Node*>

* Add deprecation macro in DAGNode.h forwarding to Node
The file was modified Sofa/framework/Simulation/Graph/src/sofa/simulation/graph/DAGSimulation.cpp (diff)
The file was modified Sofa/Component/Collision/Response/Mapper/tests/BaryMapper_test.cpp (diff)
The file was modified Sofa/framework/Core/src/sofa/core/objectmodel/Context.cpp (diff)
The file was modified Sofa/framework/Helper/test/system/PluginManager_test.cpp (diff)
The file was modified Sofa/framework/Simulation/Core/src/sofa/simulation/Visitor.h (diff)
The file was modified Sofa/framework/Simulation/Core/src/sofa/simulation/Node.cpp (diff)
The file was modified Sofa/framework/Simulation/Graph/src/sofa/simulation/graph/DAGNode.cpp (diff)
The file was modified Sofa/framework/Simulation/Graph/test/DAG_test.cpp (diff)
The file was modified Sofa/Component/Collision/Geometry/tests/Sphere_test.cpp (diff)
The file was modified applications/plugins/SceneCreator/sceneCreatorExamples/SceneCreatorBenchmarks.cpp (diff)
The file was modified Sofa/framework/Simulation/Graph/test/MutationListener_test.cpp (diff)
The file was modified Sofa/framework/Core/src/sofa/core/fwd.h (diff)
The file was modified Sofa/Component/LinearSystem/tests/MappingGraph_test.cpp (diff)
The file was modified Sofa/framework/Simulation/Graph/test/CMakeLists.txt (diff)
The file was modified Sofa/framework/Simulation/Core/src/sofa/simulation/Node.h (diff)
The file was modified Sofa/Component/LinearSystem/tests/MatrixLinearSystem_test.cpp (diff)
The file was modified Sofa/framework/Simulation/Graph/test/DAGNode_test.cpp (diff)
The file was modified Sofa/framework/SimpleApi/src/sofa/simpleapi/SimpleApi.cpp (diff)
The file was modified Sofa/framework/Simulation/Graph/src/sofa/simulation/graph/DAGNode.h (diff)
The file was modified Sofa/Component/Collision/Geometry/tests/Triangle_test.cpp (diff)
Commit ddf26388b893498d79eff9378bc0a809f9b1d48c by noreply
[Mapping.Linear] BarycentricMappingTopologyContainerMapper: Various cleanups (#5630)

* refactor to avoid pointer

* various cleaning (types)

---------

Co-authored-by: Paul Baksic <30337881+bakpaul@users.noreply.github.com>
The file was modified Sofa/Component/Mapping/Linear/src/sofa/component/mapping/linear/BarycentricMappers/BarycentricMapper.h (diff)
The file was modified Sofa/Component/Mapping/Linear/src/sofa/component/mapping/linear/BarycentricMappers/BarycentricMapperQuadSetTopology.h (diff)
The file was modified Sofa/Component/Mapping/Linear/src/sofa/component/mapping/linear/BarycentricMappers/BarycentricMapperQuadSetTopology.inl (diff)
The file was modified Sofa/Component/Mapping/Linear/src/sofa/component/mapping/linear/BarycentricMappers/BarycentricMapperHexahedronSetTopology.h (diff)
The file was modified Sofa/Component/Mapping/Linear/src/sofa/component/mapping/linear/BarycentricMappers/BarycentricMapperTetrahedronSetTopology.inl (diff)
The file was modified Sofa/Component/Mapping/Linear/src/sofa/component/mapping/linear/BarycentricMappers/BarycentricMapperTetrahedronSetTopology.h (diff)
The file was modified Sofa/Component/Mapping/Linear/src/sofa/component/mapping/linear/BarycentricMappers/BarycentricMapperTopologyContainer.h (diff)
The file was modified Sofa/Component/Mapping/Linear/src/sofa/component/mapping/linear/BarycentricMappers/BarycentricMapperTopologyContainer.inl (diff)
The file was modified Sofa/Component/Mapping/Linear/src/sofa/component/mapping/linear/BarycentricMappers/BarycentricMapperHexahedronSetTopology.inl (diff)
The file was modified Sofa/Component/Mapping/Linear/src/sofa/component/mapping/linear/BarycentricMappers/BarycentricMapperEdgeSetTopology.h (diff)
The file was modified Sofa/Component/Mapping/Linear/src/sofa/component/mapping/linear/BarycentricMappers/BarycentricMapper.inl (diff)
The file was modified Sofa/Component/Mapping/Linear/src/sofa/component/mapping/linear/BarycentricMappers/BarycentricMapperTriangleSetTopology.h (diff)
The file was modified Sofa/Component/Mapping/Linear/src/sofa/component/mapping/linear/BarycentricMappers/BarycentricMapperTriangleSetTopology.inl (diff)
The file was modified Sofa/Component/Mapping/Linear/src/sofa/component/mapping/linear/BarycentricMappers/BarycentricMapperEdgeSetTopology.inl (diff)
Commit 5f6d24d4e0ecfe394d87bd20f63aa75f577ed309 by noreply
[Type] Vec: update equality methods (#5635)

update equality methods

Co-authored-by: Hugo <hugo.talbot@sofa-framework.org>
Co-authored-by: Paul Baksic <30337881+bakpaul@users.noreply.github.com>
The file was modified Sofa/framework/Type/test/VecTypes_test.cpp (diff)
The file was modified Sofa/framework/Type/src/sofa/type/Vec.h (diff)
Commit 0ed33b8daf9300f7b2af3984f77293480a6c5c97 by noreply
[Core] ObjectFactory: fix warning about string concatenation (#5678)

fix warning about concat

Co-authored-by: Hugo <hugo.talbot@sofa-framework.org>
Co-authored-by: Paul Baksic <30337881+bakpaul@users.noreply.github.com>
The file was modified Sofa/framework/Core/src/sofa/core/ObjectFactory.h (diff)
Commit a2c58993f6a44f0b7b647d510e670a96882417dd by noreply
[Sofa.Gui.Common] Fix invalid rendering of Node when selected. (#5687)

Fix invalid rendering of Node depending on mShowSelection
The file was modified Sofa/GUI/Common/src/sofa/gui/common/BaseViewer.cpp (diff)
Commit 47cf52a38c3ec14e749f9a293497920289f38a02 by noreply
[SofaCUDA] adding support for CUDA 13.0: remove deprecated API usage (#5686)

adding support for CUDA 13.0: remove deprecated API usage

Co-authored-by: ishak barkat <ibarkat@unistra.fr>
The file was modified applications/plugins/SofaCUDA/src/sofa/gpu/cuda/mycuda.cu (diff)