mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +00:00
Re-sew non-manifold operands; interior loop re-orientations affect edge identity #8140
This commit is contained in:
@@ -136,6 +136,17 @@ bool IfcGeom::OpenCascadeKernel::convert_openings(const IfcUtil::IfcBaseEntity*
|
|||||||
for (auto entity_part : parts) {
|
for (auto entity_part : parts) {
|
||||||
bool is_manifold = util::is_manifold(entity_part);
|
bool is_manifold = util::is_manifold(entity_part);
|
||||||
|
|
||||||
|
if (!is_manifold) {
|
||||||
|
// force sewing, edge identity might have been mudied by FixAdvFace.FixOrientation.MSG5 to fix interior loop winding order
|
||||||
|
TopTools_ListOfShape list;
|
||||||
|
IfcGeom::util::shape_to_face_list(entity_part, list);
|
||||||
|
IfcGeom::util::create_solid_from_faces(list, entity_part, settings_.get<settings::Precision>().get(), true);
|
||||||
|
is_manifold = util::is_manifold(entity_part);
|
||||||
|
if (is_manifold) {
|
||||||
|
Logger::Warning("Successfully sewed non-manifold first operand");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!is_manifold) {
|
if (!is_manifold) {
|
||||||
if (settings_.get<settings::MakeVolume>().get()) {
|
if (settings_.get<settings::MakeVolume>().get()) {
|
||||||
BOPAlgo_MakerVolume mv;
|
BOPAlgo_MakerVolume mv;
|
||||||
|
|||||||
Reference in New Issue
Block a user