From 4607bd0747fa712d2ef519410b80dc14b2269ae6 Mon Sep 17 00:00:00 2001 From: akaftasev Date: Mon, 16 Jan 2023 14:05:53 +0300 Subject: [PATCH] 0033311: Modeling Algorithm - No results of thrusection algorithm Changed default value of myPercent --- src/BRepFill/BRepFill_CompatibleWires.cxx | 2 +- tests/bugs/modalg_8/bug33311 | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 tests/bugs/modalg_8/bug33311 diff --git a/src/BRepFill/BRepFill_CompatibleWires.cxx b/src/BRepFill/BRepFill_CompatibleWires.cxx index 0fbf3bd666..7474c7b346 100644 --- a/src/BRepFill/BRepFill_CompatibleWires.cxx +++ b/src/BRepFill/BRepFill_CompatibleWires.cxx @@ -701,7 +701,7 @@ void BRepFill_CompatibleWires::Init(const TopTools_SequenceOfShape& Sections) { myInit = Sections; myWork = Sections; - myPercent = 0.01; + myPercent = 0.1; myStatus = BRepFill_ThruSectionErrorStatus_NotDone; myMap.Clear(); diff --git a/tests/bugs/modalg_8/bug33311 b/tests/bugs/modalg_8/bug33311 new file mode 100644 index 0000000000..fbea75097f --- /dev/null +++ b/tests/bugs/modalg_8/bug33311 @@ -0,0 +1,11 @@ +puts "========================" +puts "0033311: Modeling Algorithm - No results of thrusection algorithm" +puts "========================" +puts "" + +restore [locate_data_file bug33311_1.brep] w1 +restore [locate_data_file bug33311_2.brep] w2 + +thrusections res 0 0 w1 w2 + +checkview -display res -2d -path ${imagedir}/${test_image}.png