mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +00:00
Process IfcStyledItems directly applied to an IfcFacetedBrep
This commit is contained in:
@@ -174,8 +174,10 @@ bool IfcGeom::convert(const IfcSchema::IfcRevolvedAreaSolid::ptr l, TopoDS_Shape
|
|||||||
|
|
||||||
bool IfcGeom::convert(const IfcSchema::IfcFacetedBrep::ptr l, IfcRepresentationShapeItems& shape) {
|
bool IfcGeom::convert(const IfcSchema::IfcFacetedBrep::ptr l, IfcRepresentationShapeItems& shape) {
|
||||||
TopoDS_Shape s;
|
TopoDS_Shape s;
|
||||||
|
const SurfaceStyle* collective_style = get_style(l);
|
||||||
if (IfcGeom::convert_shape(l->Outer(),s) ) {
|
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 true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user