From d25715ad2c0fa6bd29acebd53928abbf68494b13 Mon Sep 17 00:00:00 2001 From: Alexander Gessler Date: Mon, 8 Apr 2013 19:39:15 +0200 Subject: [PATCH] - Ifc: fix issue pointed out by clang that caused an epsilon check to go totally wrong. A pair of extra parentheses invoked C++ expression evaluation instead of argument passing. --- code/IFCBoolean.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/IFCBoolean.cpp b/code/IFCBoolean.cpp index 911f23a44..7330ed940 100644 --- a/code/IFCBoolean.cpp +++ b/code/IFCBoolean.cpp @@ -245,7 +245,7 @@ bool IntersectsBoundaryProfile( const IfcVector3& e0, const IfcVector3& e1, cons // directly on the vertex between two segments. if (!intersected_boundary_points.empty() && intersected_boundary_segments.back()==i-1 ) { const IfcVector3 diff = intersected_boundary_points.back() - p; - if(IfcVector3((diff.x, diff.y)).SquareLength() < 1e-7) { + if(IfcVector2(diff.x, diff.y).SquareLength() < 1e-7) { continue; } }