mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 20:42:27 +00:00
Layerset processing error message
This commit is contained in:
@@ -1429,13 +1429,23 @@ IfcGeom::BRepElement<P>* IfcGeom::Kernel::create_brep_for_representation_and_pro
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (product->as<IfcSchema::IfcWall>() && fold_layers(product->as<IfcSchema::IfcWall>(), shapes, layers, thickness, folded_layers)) {
|
if (styles.size() > 1) {
|
||||||
if (apply_folded_layerset(shapes, folded_layers, styles, shapes2)) {
|
// If there's only a single layer there is no need to manipulate geometries.
|
||||||
std::swap(shapes, shapes2);
|
bool success = true;
|
||||||
|
if (product->as<IfcSchema::IfcWall>() && fold_layers(product->as<IfcSchema::IfcWall>(), shapes, layers, thickness, folded_layers)) {
|
||||||
|
if (apply_folded_layerset(shapes, folded_layers, styles, shapes2)) {
|
||||||
|
std::swap(shapes, shapes2);
|
||||||
|
success = true;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (apply_layerset(shapes, layers, styles, shapes2)) {
|
||||||
|
std::swap(shapes, shapes2);
|
||||||
|
success = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
if (apply_layerset(shapes, layers, styles, shapes2)) {
|
if (!success) {
|
||||||
std::swap(shapes, shapes2);
|
Logger::Error("Failed processing layerset");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user