mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-27 18:57:17 +00:00
Remove some warnings for open shells
This commit is contained in:
@@ -341,6 +341,13 @@ bool IfcGeom::Kernel::create_solid_from_compound(const TopoDS_Shape& compound, T
|
|||||||
bool IfcGeom::Kernel::create_solid_from_faces(const TopTools_ListOfShape& face_list, TopoDS_Shape& shape) {
|
bool IfcGeom::Kernel::create_solid_from_faces(const TopTools_ListOfShape& face_list, TopoDS_Shape& shape) {
|
||||||
bool valid_shell = false;
|
bool valid_shell = false;
|
||||||
|
|
||||||
|
if (face_list.Extent() == 1) {
|
||||||
|
shape = face_list.First();
|
||||||
|
// A bit dubious what to return here.
|
||||||
|
return true;
|
||||||
|
} else if (face_list.Extent() == 0) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
int max_faces = getValue(GV_MAX_FACES_TO_SEW);
|
int max_faces = getValue(GV_MAX_FACES_TO_SEW);
|
||||||
if (max_faces == -1) {
|
if (max_faces == -1) {
|
||||||
@@ -3678,7 +3685,7 @@ IfcGeom::Kernel::faceset_helper::faceset_helper(Kernel* kernel, const IfcSchema:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (loops_removed || non_manifold) {
|
if (loops_removed || (non_manifold && l->declaration().is(IfcSchema::IfcClosedShell::Class()))) {
|
||||||
Logger::Error(boost::lexical_cast<std::string>(loops_removed) + " loops removed and " + boost::lexical_cast<std::string>(non_manifold) + " non-manifold edges for:", l);
|
Logger::Error(boost::lexical_cast<std::string>(loops_removed) + " loops removed and " + boost::lexical_cast<std::string>(non_manifold) + " non-manifold edges for:", l);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user