From ee1e9b4aec40df78e13b62d459659ea637b84ed9 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Sun, 27 Sep 2020 11:51:00 +0200 Subject: [PATCH] --force-space-transparency --- src/ifcgeom/IfcGeomFunctions.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/ifcgeom/IfcGeomFunctions.cpp b/src/ifcgeom/IfcGeomFunctions.cpp index abbbe3d0a3..8bf5fd1489 100644 --- a/src/ifcgeom/IfcGeomFunctions.cpp +++ b/src/ifcgeom/IfcGeomFunctions.cpp @@ -1854,6 +1854,18 @@ IfcGeom::BRepElement* IfcGeom::Kernel::create_brep_for_representation_and representation_id_builder << "-material-" << single_material->data().id(); } + if (settings.force_space_transparency() >= 0. && product->declaration().is("IfcSpace")) { + for (auto& s : shapes) { + if (s.hasStyle()) { + for (auto& p : style_cache) { + if (&p.second == &s.Style()) { + p.second.Transparency() = settings.force_space_transparency(); + } + } + } + } + } + int parent_id = -1; try { IfcUtil::IfcBaseEntity* parent_object = get_decomposing_entity(product);