From 650e515dd6ddecf3876cbf6872931064901f1cbf Mon Sep 17 00:00:00 2001 From: Alexander Gessler Date: Tue, 22 Jan 2013 16:50:18 +0100 Subject: [PATCH] - Ifc: bix bug that caused some openings to be generated twice. This stops lots of the z noise. --- code/IFCGeometry.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/IFCGeometry.cpp b/code/IFCGeometry.cpp index 73813bedd..0e464e1e2 100644 --- a/code/IFCGeometry.cpp +++ b/code/IFCGeometry.cpp @@ -2245,7 +2245,7 @@ void ProcessExtrudedAreaSolid(const IfcExtrudedAreaSolid& solid, TempMesh& resul out.push_back(in[next]); if(openings) { - if(GenerateOpenings(*conv.apply_openings,nors,temp)) { + if(GenerateOpenings(*conv.apply_openings,nors,temp, i >= size/2)) { ++sides_with_openings; } @@ -2264,7 +2264,7 @@ void ProcessExtrudedAreaSolid(const IfcExtrudedAreaSolid& solid, TempMesh& resul curmesh.vertcnt.push_back(size); if(openings && size > 2) { - if(GenerateOpenings(*conv.apply_openings,nors,temp)) { + if(GenerateOpenings(*conv.apply_openings,nors,temp, true)) { ++sides_with_v_openings; }