#1153 Exclude walls and slabs in profile edges hack

This commit is contained in:
Thomas Krijnen
2022-02-27 12:55:39 +01:00
parent 3b7bf8844a
commit 5dfe85691b
+1 -1
View File
@@ -1073,7 +1073,7 @@ void SvgSerializer::write(const geometry_data& data) {
}
TopoDS_Compound profile_edges;
if (profile_threshold_ != -1) {
if (profile_threshold_ != -1 && !(data.product->declaration().is("IfcWall") || data.product->declaration().is("IfcSlab"))) {
TopTools_IndexedDataMapOfShapeListOfShape map;
TopExp::MapShapesAndAncestors(*compound_to_hlr, TopAbs_EDGE, TopAbs_FACE, map);
if (map.Extent() > profile_threshold_) {