From 1fb5670bbda2b1f0496ecc4c513dc5f4b6fccee6 Mon Sep 17 00:00:00 2001 From: Sebastien Loriot Date: Mon, 25 Mar 2019 14:09:15 +0100 Subject: [PATCH] Update Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/measure.h Co-Authored-By: afabri --- .../include/CGAL/Polygon_mesh_processing/measure.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/measure.h b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/measure.h index bb232327364..95b29e2f519 100644 --- a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/measure.h +++ b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/measure.h @@ -607,7 +607,7 @@ typedef typename Kernel::FT FT; vr = vector(ORIGIN, get(vpm, target(prev(halfedge(fd, tmesh), tmesh), tmesh))); Vector_3 n = cross_product((vq-vp),(vr-vp)); volume += (scalar_product(n,vp))/6.; - n = scale(n, 1.0/24.0); + n = scale(n, FT(1)/FT(24)); Vector_3 v2 = sum(vp, vq); Vector_3 v3 = Vector_3(square(v2.x()), square(v2.y()), square(v2.z()));