mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +00:00
#2819 Mark rep id as AdvancedBrep
This commit is contained in:
@@ -628,7 +628,7 @@ IfcUtil::IfcBaseClass* POSTFIX_SCHEMA(serialise)(const TopoDS_Shape& shape, bool
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (items->size() > 0) {
|
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 {
|
} else {
|
||||||
|
|
||||||
// If not, see if there is a shell
|
// 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) {
|
if (shells->size() > 0) {
|
||||||
items->push(new IfcSchema::IfcShellBasedSurfaceModel(shells->generalize()));
|
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 {
|
} else {
|
||||||
|
|
||||||
// If not, see if there is are one of more faces. Note that they will be grouped into a shell.
|
// 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) {
|
if (face_count > 0) {
|
||||||
items->push(shell);
|
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 {
|
} else {
|
||||||
|
|
||||||
// If not, see if there are any edges. Note that wires are skipped as
|
// If not, see if there are any edges. Note that wires are skipped as
|
||||||
|
|||||||
Reference in New Issue
Block a user