mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 10:27:00 +00:00
Moved no wire flag inside of wire_intersections method
This commit is contained in:
committed by
Thomas Krijnen
parent
d4a01618cd
commit
10f4bca5d2
@@ -1157,7 +1157,7 @@ bool IfcGeom::Kernel::convert_wire_to_faces(const TopoDS_Wire& w, TopoDS_Compoun
|
|||||||
}
|
}
|
||||||
|
|
||||||
TopTools_ListOfShape results;
|
TopTools_ListOfShape results;
|
||||||
if (getValue(GV_NO_WIRE_INTERSECTION_CHECK) < 0. && wire_intersections(w, results)) {
|
if (wire_intersections(w, results)) {
|
||||||
Logger::Warning("Self-intersections with " + boost::lexical_cast<std::string>(results.Extent()) + " cycles detected");
|
Logger::Warning("Self-intersections with " + boost::lexical_cast<std::string>(results.Extent()) + " cycles detected");
|
||||||
} else {
|
} else {
|
||||||
results.Clear();
|
results.Clear();
|
||||||
@@ -3799,6 +3799,11 @@ namespace {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool IfcGeom::Kernel::wire_intersections(const TopoDS_Wire& wire, TopTools_ListOfShape& wires) {
|
bool IfcGeom::Kernel::wire_intersections(const TopoDS_Wire& wire, TopTools_ListOfShape& wires) {
|
||||||
|
|
||||||
|
if (getValue(GV_NO_WIRE_INTERSECTION_CHECK) > 0.) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (!wire.Closed()) {
|
if (!wire.Closed()) {
|
||||||
wires.Append(wire);
|
wires.Append(wire);
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user