From 085d420d7ca2c2f44f1c008f516b490c1a56c1aa Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Thu, 15 Jun 2023 16:18:29 +0200 Subject: [PATCH] #2819 Mark rep id as AdvancedBrep --- src/ifcgeom/Serialization/schema/Serialization.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ifcgeom/Serialization/schema/Serialization.cpp b/src/ifcgeom/Serialization/schema/Serialization.cpp index aac7daa6cb..80c6967c26 100644 --- a/src/ifcgeom/Serialization/schema/Serialization.cpp +++ b/src/ifcgeom/Serialization/schema/Serialization.cpp @@ -628,7 +628,7 @@ IfcUtil::IfcBaseClass* POSTFIX_SCHEMA(serialise)(const TopoDS_Shape& shape, bool } if (items->size() > 0) { - rep = new IfcSchema::IfcShapeRepresentation(0, std::string("Body"), std::string("Brep"), items); + rep = new IfcSchema::IfcShapeRepresentation(0, std::string("Body"), advanced ? std::string("AdvancedBrep") : std::string("Brep"), items); } else { // If not, see if there is a shell @@ -643,7 +643,7 @@ IfcUtil::IfcBaseClass* POSTFIX_SCHEMA(serialise)(const TopoDS_Shape& shape, bool if (shells->size() > 0) { items->push(new IfcSchema::IfcShellBasedSurfaceModel(shells->generalize())); - rep = new IfcSchema::IfcShapeRepresentation(0, std::string("Body"), std::string("Brep"), items); + rep = new IfcSchema::IfcShapeRepresentation(0, std::string("Body"), advanced ? std::string("AdvancedBrep") : std::string("Brep"), items); } else { // If not, see if there is are one of more faces. Note that they will be grouped into a shell. @@ -652,7 +652,7 @@ IfcUtil::IfcBaseClass* POSTFIX_SCHEMA(serialise)(const TopoDS_Shape& shape, bool if (face_count > 0) { items->push(shell); - rep = new IfcSchema::IfcShapeRepresentation(0, std::string("Body"), std::string("Brep"), items); + rep = new IfcSchema::IfcShapeRepresentation(0, std::string("Body"), advanced ? std::string("AdvancedBrep") : std::string("Brep"), items); } else { // If not, see if there are any edges. Note that wires are skipped as