Skip to content

Commit

Permalink
Fix #4001 - do not duplicate surfaceType when slab
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarrec committed Jun 23, 2020
1 parent 299099e commit f928802
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gbxml/ForwardTranslator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ namespace gbxml {
result.append_attribute("surfaceType") = "RaisedFloor";
} else if (surface.isGroundSurface()) {
checkSlabOnGrade = true;
result.append_attribute("surfaceType") = "UndergroundSlab"; // might be SlabOnGrade, check vertices later
// Can be either UndergroundSlab or SlabOnGrade, check vertices later
} else if (istringEqual("Surface", outsideBoundaryCondition)) {
result.append_attribute("surfaceType") = "InteriorFloor";
} else if (istringEqual("Adiabatic", outsideBoundaryCondition)) {
Expand Down Expand Up @@ -847,6 +847,8 @@ namespace gbxml {
}
if ((maxZ <= 0.01) && (minZ >= -0.01)) {
result.append_attribute("surfaceType") = "SlabOnGrade";
} else {
result.append_attribute("surfaceType") = "UndergroundSlab";
}
}

Expand Down

0 comments on commit f928802

Please sign in to comment.