From ed1db3dc68ab56b0c18353b1a47e8bc8fbef4f62 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Wed, 9 Apr 2014 10:57:45 +0000 Subject: [PATCH] Process IfcStyledItems directly applied to an IfcFacetedBrep --- src/ifcgeom/IfcGeomShapes.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ifcgeom/IfcGeomShapes.cpp b/src/ifcgeom/IfcGeomShapes.cpp index 86ffb4c6af..c1fa20417c 100644 --- a/src/ifcgeom/IfcGeomShapes.cpp +++ b/src/ifcgeom/IfcGeomShapes.cpp @@ -174,8 +174,10 @@ bool IfcGeom::convert(const IfcSchema::IfcRevolvedAreaSolid::ptr l, TopoDS_Shape bool IfcGeom::convert(const IfcSchema::IfcFacetedBrep::ptr l, IfcRepresentationShapeItems& shape) { TopoDS_Shape s; + const SurfaceStyle* collective_style = get_style(l); if (IfcGeom::convert_shape(l->Outer(),s) ) { - shape.push_back(IfcRepresentationShapeItem(s, get_style(l->Outer()))); + const SurfaceStyle* indiv_style = get_style(l->Outer()); + shape.push_back(IfcRepresentationShapeItem(s, indiv_style ? indiv_style : collective_style)); return true; } return false;