mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-13 19:07:57 +00:00
Fix IfcOpenHouse
This commit is contained in:
@@ -12,9 +12,9 @@ namespace IfcGeom {
|
||||
template <typename Fn, typename T>
|
||||
IfcUtil::IfcBaseClass* execute_based_on_schema(Fn fn1, Fn fn2, const std::string& schema_name, const TopoDS_Shape& shape, T t) {
|
||||
const std::string schema_name_lower = boost::to_lower_copy(schema_name);
|
||||
if (schema_name == "ifc2x3") {
|
||||
if (schema_name_lower == "ifc2x3") {
|
||||
return fn1(shape, t);
|
||||
} else if (schema_name == "ifc4") {
|
||||
} else if (schema_name_lower == "ifc4") {
|
||||
return fn2(shape, t);
|
||||
} else {
|
||||
throw IfcParse::IfcException("No geometry serialization available for " + schema_name);
|
||||
|
||||
Reference in New Issue
Block a user