mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 18:16:40 +00:00
#996 Correct thickness computation
This commit is contained in:
@@ -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<double>::const_iterator thickness = thicknesses.begin();
|
||||
result_t::iterator result_vector = result.begin() + 1;
|
||||
|
||||
Reference in New Issue
Block a user