소스 검색

- Ifc: bix bug that caused some openings to be generated twice. This stops lots of the z noise.

Alexander Gessler 12 년 전
부모
커밋
650e515dd6
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      code/IFCGeometry.cpp

+ 2 - 2
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;
 				}