#2126 reverse 1st operand inner wires in 2d opening subtraction

This commit is contained in:
Thomas Krijnen
2022-04-08 10:45:28 +02:00
parent 33c53a2c9a
commit 564c4b7644
+7
View File
@@ -4599,6 +4599,13 @@ namespace {
if (outer_wire.IsNull() || !it2.Value().IsSame(outer_wire)) {
wires.push_back(TopoDS::Wire(it2.Value()));
if (shape_index == 0 && num_wires > 0) {
// An inner wire on the first operand face: reverse, because
// MakeFace expects inner boundaries to be added as bounded
// areas.
wires.back().Reverse();
}
}
}