diff --git a/bindings/Modules/src/SofaPython3/SofaBaseTopology/Binding_SparseGridTopology.cpp b/bindings/Modules/src/SofaPython3/SofaBaseTopology/Binding_SparseGridTopology.cpp index ce4b2e5a5..3b08b90f3 100644 --- a/bindings/Modules/src/SofaPython3/SofaBaseTopology/Binding_SparseGridTopology.cpp +++ b/bindings/Modules/src/SofaPython3/SofaBaseTopology/Binding_SparseGridTopology.cpp @@ -46,7 +46,7 @@ void moduleAddSparseGridTopology(pybind11::module& m) { // findCube (pos) c.def("findCube", [](SparseGridTopology & self, const py::list & l) { - sofa::type::Vector3 pos; + sofa::type::Vec3 pos; pos[0] = l[0].cast(); pos[1] = l[1].cast(); pos[2] = l[2].cast(); diff --git a/bindings/Modules/src/SofaPython3/SofaLinearSolver/Binding_LinearSolver.cpp b/bindings/Modules/src/SofaPython3/SofaLinearSolver/Binding_LinearSolver.cpp index e6f1fbef2..99e992655 100644 --- a/bindings/Modules/src/SofaPython3/SofaLinearSolver/Binding_LinearSolver.cpp +++ b/bindings/Modules/src/SofaPython3/SofaLinearSolver/Binding_LinearSolver.cpp @@ -58,7 +58,6 @@ void bindLinearSolvers(py::module &m) { using CRS = sofa::linearalgebra::CompressedRowSparseMatrix; using CRSLinearSolver = sofa::component::linearsolver::MatrixLinearSolver >; - using Real = typename CRS::Real; const std::string typeName = CRSLinearSolver::GetClass()->className + CRSLinearSolver::GetCustomTemplateName(); diff --git a/bindings/Sofa/src/SofaPython3/Sofa/Core/Binding_ContactListener.cpp b/bindings/Sofa/src/SofaPython3/Sofa/Core/Binding_ContactListener.cpp index fcb7f0a28..986d30c2c 100644 --- a/bindings/Sofa/src/SofaPython3/Sofa/Core/Binding_ContactListener.cpp +++ b/bindings/Sofa/src/SofaPython3/Sofa/Core/Binding_ContactListener.cpp @@ -45,15 +45,15 @@ namespace sofapython3 contactData["numberOfContacts"] = numberOfContacts; const std::vector> contactElements = listener.getContactElements(); - const std::vector> contactPoints = listener.getContactPoints(); + const std::vector> contactPoints = listener.getContactPoints(); std::vector collisionElementsModel1; std::vector collisionElementsModel2; collisionElementsModel1.reserve(numberOfContacts); collisionElementsModel2.reserve(numberOfContacts); - std::vector collisionPointsModel1; - std::vector collisionPointsModel2; + std::vector collisionPointsModel1; + std::vector collisionPointsModel2; collisionPointsModel1.reserve(numberOfContacts); collisionPointsModel2.reserve(numberOfContacts); diff --git a/bindings/Sofa/src/SofaPython3/Sofa/Core/Binding_ForceField.cpp b/bindings/Sofa/src/SofaPython3/Sofa/Core/Binding_ForceField.cpp index 5bf30285b..85f2461a7 100644 --- a/bindings/Sofa/src/SofaPython3/Sofa/Core/Binding_ForceField.cpp +++ b/bindings/Sofa/src/SofaPython3/Sofa/Core/Binding_ForceField.cpp @@ -141,7 +141,7 @@ namespace sofapython3 size_t offset = mref.offset; // nNodes is the number of nodes (positions) of the object whose K matrix we're computing - int nNodes = int(mparams->readX(mstate)->getValue().size()); + int nNodes = int(mparams->readX(mstate.get())->getValue().size()); // nDofs is the number of degrees of freedom per-element of the object whose K matrix we're computing int nDofs = Coord::total_size; diff --git a/bindings/SofaExporter/src/SofaExporter/Binding_STLExporter.cpp b/bindings/SofaExporter/src/SofaExporter/Binding_STLExporter.cpp index b54883596..2fb309b86 100644 --- a/bindings/SofaExporter/src/SofaExporter/Binding_STLExporter.cpp +++ b/bindings/SofaExporter/src/SofaExporter/Binding_STLExporter.cpp @@ -24,9 +24,9 @@ #include #include -#include +#include -using sofa::component::exporter::STLExporter; +using sofa::component::io::mesh::STLExporter; /// Makes an alias for the pybind11 namespace to increase readability. namespace py { using namespace pybind11; } diff --git a/bindings/SofaExporter/src/SofaExporter/Binding_VisualModelOBJExporter.cpp b/bindings/SofaExporter/src/SofaExporter/Binding_VisualModelOBJExporter.cpp index 08bb2b3bb..dd4f820d5 100644 --- a/bindings/SofaExporter/src/SofaExporter/Binding_VisualModelOBJExporter.cpp +++ b/bindings/SofaExporter/src/SofaExporter/Binding_VisualModelOBJExporter.cpp @@ -24,9 +24,9 @@ #include #include -#include +#include -using sofa::component::exporter::VisualModelOBJExporter; +using sofa::component::io::mesh::VisualModelOBJExporter; namespace py { using namespace pybind11; }