From e32d1022707da2e3756772a79367e9c5c85a77f4 Mon Sep 17 00:00:00 2001 From: Simon Giraudot Date: Tue, 8 Jan 2019 14:57:16 +0100 Subject: [PATCH] Add verbose display of matrix --- .../CGAL/OpenGR/compute_registration_transformation.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Point_set_processing_3/include/CGAL/OpenGR/compute_registration_transformation.h b/Point_set_processing_3/include/CGAL/OpenGR/compute_registration_transformation.h index f0bd94e9df4..b68e1dbb842 100644 --- a/Point_set_processing_3/include/CGAL/OpenGR/compute_registration_transformation.h +++ b/Point_set_processing_3/include/CGAL/OpenGR/compute_registration_transformation.h @@ -112,6 +112,16 @@ compute_registration_transformation(const PointRange1& range1, const PointRan double score = matcher.ComputeTransformation(set1, set2, mat, sampler, visitor); +#ifdef CGAL_OPENGR_VERBOSE + std::cerr << "Transformation matrix: " << std::endl; + for (std::size_t i = 0; i < 4; ++ i) + { + for (std::size_t j = 0; j < 4; ++ j) + std::cerr << mat.coeff(i,j) << " "; + std::cerr << std::endl; + } +#endif + typename Kernel::Aff_transformation_3 cgal_trsf( mat.coeff(0,0), mat.coeff(0,1), mat.coeff(0,2), mat.coeff(0,3), mat.coeff(1,0), mat.coeff(1,1), mat.coeff(1,2), mat.coeff(1,3),