Skip to content

Commit b235320

Browse files
author
aothms
committed
Process IfcStyledItems directly applied to an IfcFacetedBrep
1 parent e9a3464 commit b235320

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ifcgeom/IfcGeomShapes.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,10 @@ bool IfcGeom::convert(const IfcSchema::IfcRevolvedAreaSolid::ptr l, TopoDS_Shape
174174

175175
bool IfcGeom::convert(const IfcSchema::IfcFacetedBrep::ptr l, IfcRepresentationShapeItems& shape) {
176176
TopoDS_Shape s;
177+
const SurfaceStyle* collective_style = get_style(l);
177178
if (IfcGeom::convert_shape(l->Outer(),s) ) {
178-
shape.push_back(IfcRepresentationShapeItem(s, get_style(l->Outer())));
179+
const SurfaceStyle* indiv_style = get_style(l->Outer());
180+
shape.push_back(IfcRepresentationShapeItem(s, indiv_style ? indiv_style : collective_style));
179181
return true;
180182
}
181183
return false;

0 commit comments

Comments
 (0)