From f63605355ae4b7c66358a4b2be268b86e5a7ac0f Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Wed, 20 Apr 2016 15:25:06 +0200 Subject: [PATCH] Bug-fix in Image_3::labellized_trilinear_interpolation The 'value_outside` was not correctly used. --- CGAL_ImageIO/include/CGAL/Image_3.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CGAL_ImageIO/include/CGAL/Image_3.h b/CGAL_ImageIO/include/CGAL/Image_3.h index b22801307aa..a6584d0fad9 100644 --- a/CGAL_ImageIO/include/CGAL/Image_3.h +++ b/CGAL_ImageIO/include/CGAL/Image_3.h @@ -517,9 +517,7 @@ Image_3::labellized_trilinear_interpolation Image_word_type iwt = labels[i]; const double r = trilinear_interpolation( - x, y, z, 0., indicator_factory.indicator(iwt)); - CGAL_assertion(r >= 0.); - CGAL_assertion(r <= 1.); + x, y, z, value_outside, indicator_factory.indicator(iwt)); if(r > best_value) { best = iwt;