From 757e3b52720db57954a675ce35972295daebf683 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Sun, 20 Sep 2020 11:11:44 +0200 Subject: [PATCH] #996 Correct thickness computation --- src/ifcgeom/IfcGeomFunctions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcgeom/IfcGeomFunctions.cpp b/src/ifcgeom/IfcGeomFunctions.cpp index 2cae09bceb..411ca6a984 100644 --- a/src/ifcgeom/IfcGeomFunctions.cpp +++ b/src/ifcgeom/IfcGeomFunctions.cpp @@ -2712,7 +2712,7 @@ bool IfcGeom::Kernel::fold_layers(const IfcSchema::IfcWall* wall, const IfcRepre double layer_offset = 0; - const double total_thickness = std::accumulate(thicknesses.begin(), thicknesses.end(), 0); + const double total_thickness = std::accumulate(thicknesses.begin(), thicknesses.end(), 0.); std::vector::const_iterator thickness = thicknesses.begin(); result_t::iterator result_vector = result.begin() + 1;