From 506f3626cdb2b6ddad370dcf245478af873ef83e Mon Sep 17 00:00:00 2001 From: Sven Oesau Date: Wed, 2 Oct 2024 19:45:47 +0200 Subject: [PATCH] bug fixes --- .../non_rigid_mesh_registration_example.cpp | 2 +- .../Polygon_mesh_processing/non_rigid_mesh_registration.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Polygon_mesh_processing/examples/Polygon_mesh_processing/non_rigid_mesh_registration_example.cpp b/Polygon_mesh_processing/examples/Polygon_mesh_processing/non_rigid_mesh_registration_example.cpp index 80a83c964da4..5aa632b88eda 100644 --- a/Polygon_mesh_processing/examples/Polygon_mesh_processing/non_rigid_mesh_registration_example.cpp +++ b/Polygon_mesh_processing/examples/Polygon_mesh_processing/non_rigid_mesh_registration_example.cpp @@ -18,7 +18,7 @@ using FT = K::FT; namespace PMP = CGAL::Polygon_mesh_processing; -int main(int argc, char** argv) { +int main(int, char**) { const std::string source_fn = CGAL::data_file_path("meshes/bear.off"); const std::string target_fn = CGAL::data_file_path("meshes/bear_bis.off"); const std::string corr_fn = "data/bear_bear_bis.corr"; diff --git a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/non_rigid_mesh_registration.h b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/non_rigid_mesh_registration.h index a530f9b00b3d..56b0ea72f352 100644 --- a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/non_rigid_mesh_registration.h +++ b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/non_rigid_mesh_registration.h @@ -18,6 +18,7 @@ #ifdef CGAL_EIGEN3_ENABLED #include +#include #include #include #include @@ -48,11 +49,10 @@ namespace registration { #ifdef CGAL_EIGEN3_ENABLED using ScalarType = double; -using Vertex = Eigen::Vector; using Vertices = Eigen::Matrix; using Faces = Eigen::Matrix; using Matrix = Eigen::Matrix; -using Vector = Eigen::Vector; +using Vector = Eigen::VectorXd; using SparseMat = Eigen::SparseMatrix; using SparseTriplet = Eigen::Triplet;