2
0
Эх сурвалжийг харах

- reintroduced IFC openings to floors and ceilings. Were disabled for some unknown reasons, I hope I didn't break anything. Everything I tested works fine.

ulf 10 жил өмнө
parent
commit
76c69205b1
1 өөрчлөгдсөн 3 нэмэгдсэн , 6 устгасан
  1. 3 6
      code/IFCOpenings.cpp

+ 3 - 6
code/IFCOpenings.cpp

@@ -1184,16 +1184,13 @@ bool GenerateOpenings(std::vector<TempOpening>& openings,
 					profile_data = opening.profileMesh2D.get();
 					is_2d_source = true;
 				}
-				else {
-					//continue;
-				}
 			}
 			else {
 				// vertical extrusion
 				if (std::fabs(norm_extrusion_dir * nor) > 0.9) {
-					continue;
-				}
-				continue;
+					profile_data = opening.profileMesh2D.get();
+					is_2d_source = true;
+				} 
 			}
 		}
 		std::vector<IfcVector3> profile_verts = profile_data->verts;