Update IFCOpenings.cpp
parent
f44572157a
commit
0dcd72d420
|
@ -1189,22 +1189,11 @@ bool GenerateOpenings(std::vector<TempOpening>& openings,
|
||||||
TempMesh* profile_data = opening.profileMesh.get();
|
TempMesh* profile_data = opening.profileMesh.get();
|
||||||
bool is_2d_source = false;
|
bool is_2d_source = false;
|
||||||
if (opening.profileMesh2D && norm_extrusion_dir.SquareLength() > 0) {
|
if (opening.profileMesh2D && norm_extrusion_dir.SquareLength() > 0) {
|
||||||
|
|
||||||
if(std::fabs(norm_extrusion_dir * wall_extrusion_axis_norm) < 0.1) {
|
|
||||||
// horizontal extrusion
|
|
||||||
if (std::fabs(norm_extrusion_dir * nor) > 0.9) {
|
if (std::fabs(norm_extrusion_dir * nor) > 0.9) {
|
||||||
profile_data = opening.profileMesh2D.get();
|
profile_data = opening.profileMesh2D.get();
|
||||||
is_2d_source = true;
|
is_2d_source = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
// vertical extrusion
|
|
||||||
if (std::fabs(norm_extrusion_dir * nor) > 0.9) {
|
|
||||||
profile_data = opening.profileMesh2D.get();
|
|
||||||
is_2d_source = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
std::vector<IfcVector3> profile_verts = profile_data->mVerts;
|
std::vector<IfcVector3> profile_verts = profile_data->mVerts;
|
||||||
std::vector<unsigned int> profile_vertcnts = profile_data->mVertcnt;
|
std::vector<unsigned int> profile_vertcnts = profile_data->mVertcnt;
|
||||||
if(profile_verts.size() <= 2) {
|
if(profile_verts.size() <= 2) {
|
||||||
|
|
Loading…
Reference in New Issue