From 90a9485514b2345360e0962e47436397138eb733 Mon Sep 17 00:00:00 2001 From: mkv Date: Fri, 21 Nov 2014 13:24:35 +0300 Subject: [PATCH] 0025354: Intersection operation Adding test cases --- tests/bugs/modalg_5/bug25354_01 | 27 +++++++++++++++ tests/bugs/modalg_5/bug25354_02 | 28 +++++++++++++++ tests/bugs/modalg_5/bug25354_03 | 28 +++++++++++++++ tests/bugs/modalg_5/bug25354_04 | 31 +++++++++++++++++ tests/bugs/modalg_5/bug25354_05 | 27 +++++++++++++++ tests/bugs/modalg_5/bug25354_06 | 29 ++++++++++++++++ tests/bugs/modalg_5/bug25354_07 | 29 ++++++++++++++++ tests/bugs/modalg_5/bug25354_08 | 29 ++++++++++++++++ tests/bugs/modalg_5/bug25354_09 | 29 ++++++++++++++++ tests/bugs/modalg_5/bug25354_10 | 31 +++++++++++++++++ tests/bugs/modalg_5/bug25354_11 | 31 +++++++++++++++++ tests/bugs/modalg_5/bug25354_12 | 29 ++++++++++++++++ tests/bugs/modalg_5/bug25354_13 | 31 +++++++++++++++++ tests/bugs/modalg_5/bug25354_14 | 31 +++++++++++++++++ tests/bugs/modalg_5/bug25354_15 | 29 ++++++++++++++++ tests/bugs/modalg_5/bug25354_16 | 31 +++++++++++++++++ tests/bugs/modalg_5/bug25354_17 | 31 +++++++++++++++++ tests/bugs/modalg_5/bug25354_18 | 31 +++++++++++++++++ tests/bugs/modalg_5/bug25354_19 | 29 ++++++++++++++++ tests/bugs/modalg_5/bug25354_20 | 29 ++++++++++++++++ tests/bugs/modalg_5/bug25354_21 | 29 ++++++++++++++++ tests/bugs/modalg_5/bug25354_22 | 29 ++++++++++++++++ tests/bugs/modalg_5/bug25354_23 | 29 ++++++++++++++++ tests/bugs/modalg_5/bug25354_24 | 29 ++++++++++++++++ tests/bugs/modalg_5/bug25354_25 | 29 ++++++++++++++++ tests/bugs/modalg_5/bug25354_26 | 30 +++++++++++++++++ tests/bugs/modalg_5/bug25354_27 | 29 ++++++++++++++++ tests/bugs/modalg_5/bug25354_28 | 30 +++++++++++++++++ tests/bugs/modalg_5/bug25354_29 | 29 ++++++++++++++++ tests/bugs/modalg_5/bug25354_30 | 29 ++++++++++++++++ tests/bugs/modalg_5/bug25354_31 | 29 ++++++++++++++++ tests/bugs/modalg_5/bug25354_32 | 28 +++++++++++++++ tests/bugs/modalg_5/bug25354_33 | 29 ++++++++++++++++ tests/bugs/modalg_5/bug25354_34 | 30 +++++++++++++++++ tests/bugs/modalg_5/bug25354_35 | 28 +++++++++++++++ tests/bugs/modalg_5/bug25354_36 | 29 ++++++++++++++++ tests/bugs/modalg_5/bug25354_37 | 28 +++++++++++++++ tests/bugs/modalg_5/bug25354_38 | 28 +++++++++++++++ tests/bugs/modalg_5/bug25354_39 | 27 +++++++++++++++ tests/bugs/modalg_5/bug25354_40 | 29 ++++++++++++++++ tests/bugs/modalg_5/bug25354_41 | 29 ++++++++++++++++ tests/bugs/modalg_5/bug25354_42 | 27 +++++++++++++++ tests/bugs/modalg_5/bug25354_43 | 27 +++++++++++++++ tests/bugs/modalg_5/bug25354_44 | 27 +++++++++++++++ tests/bugs/modalg_5/bug25354_45 | 27 +++++++++++++++ tests/bugs/modalg_5/bug25354_46 | 26 ++++++++++++++ tests/bugs/modalg_5/bug25354_47 | 27 +++++++++++++++ tests/bugs/modalg_5/bug25354_48 | 27 +++++++++++++++ tests/bugs/modalg_5/bug25354_49 | 60 +++++++++++++++++++++++++++++++++ tests/bugs/modalg_5/bug25354_50 | 43 +++++++++++++++++++++++ 50 files changed, 1487 insertions(+) create mode 100644 tests/bugs/modalg_5/bug25354_01 create mode 100644 tests/bugs/modalg_5/bug25354_02 create mode 100644 tests/bugs/modalg_5/bug25354_03 create mode 100644 tests/bugs/modalg_5/bug25354_04 create mode 100644 tests/bugs/modalg_5/bug25354_05 create mode 100644 tests/bugs/modalg_5/bug25354_06 create mode 100644 tests/bugs/modalg_5/bug25354_07 create mode 100644 tests/bugs/modalg_5/bug25354_08 create mode 100644 tests/bugs/modalg_5/bug25354_09 create mode 100644 tests/bugs/modalg_5/bug25354_10 create mode 100644 tests/bugs/modalg_5/bug25354_11 create mode 100644 tests/bugs/modalg_5/bug25354_12 create mode 100644 tests/bugs/modalg_5/bug25354_13 create mode 100644 tests/bugs/modalg_5/bug25354_14 create mode 100644 tests/bugs/modalg_5/bug25354_15 create mode 100644 tests/bugs/modalg_5/bug25354_16 create mode 100644 tests/bugs/modalg_5/bug25354_17 create mode 100644 tests/bugs/modalg_5/bug25354_18 create mode 100644 tests/bugs/modalg_5/bug25354_19 create mode 100644 tests/bugs/modalg_5/bug25354_20 create mode 100644 tests/bugs/modalg_5/bug25354_21 create mode 100644 tests/bugs/modalg_5/bug25354_22 create mode 100644 tests/bugs/modalg_5/bug25354_23 create mode 100644 tests/bugs/modalg_5/bug25354_24 create mode 100644 tests/bugs/modalg_5/bug25354_25 create mode 100644 tests/bugs/modalg_5/bug25354_26 create mode 100644 tests/bugs/modalg_5/bug25354_27 create mode 100644 tests/bugs/modalg_5/bug25354_28 create mode 100644 tests/bugs/modalg_5/bug25354_29 create mode 100644 tests/bugs/modalg_5/bug25354_30 create mode 100644 tests/bugs/modalg_5/bug25354_31 create mode 100644 tests/bugs/modalg_5/bug25354_32 create mode 100644 tests/bugs/modalg_5/bug25354_33 create mode 100644 tests/bugs/modalg_5/bug25354_34 create mode 100644 tests/bugs/modalg_5/bug25354_35 create mode 100644 tests/bugs/modalg_5/bug25354_36 create mode 100644 tests/bugs/modalg_5/bug25354_37 create mode 100644 tests/bugs/modalg_5/bug25354_38 create mode 100644 tests/bugs/modalg_5/bug25354_39 create mode 100644 tests/bugs/modalg_5/bug25354_40 create mode 100644 tests/bugs/modalg_5/bug25354_41 create mode 100644 tests/bugs/modalg_5/bug25354_42 create mode 100644 tests/bugs/modalg_5/bug25354_43 create mode 100644 tests/bugs/modalg_5/bug25354_44 create mode 100644 tests/bugs/modalg_5/bug25354_45 create mode 100644 tests/bugs/modalg_5/bug25354_46 create mode 100644 tests/bugs/modalg_5/bug25354_47 create mode 100644 tests/bugs/modalg_5/bug25354_48 create mode 100644 tests/bugs/modalg_5/bug25354_49 create mode 100644 tests/bugs/modalg_5/bug25354_50 diff --git a/tests/bugs/modalg_5/bug25354_01 b/tests/bugs/modalg_5/bug25354_01 new file mode 100644 index 0000000000..91604aac8a --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_01 @@ -0,0 +1,27 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 01 + +restore [locate_data_file bug25354_e1.brep] b1 +restore [locate_data_file bug25354_e2.brep] b2 + +bop b1 b2 +bopsection result + +set nb_v_good 1 +set nb_e_good 0 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 2 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_02 b/tests/bugs/modalg_5/bug25354_02 new file mode 100644 index 0000000000..15c77b84fc --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_02 @@ -0,0 +1,28 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 02 + +restore [locate_data_file bug25354_e1.brep] b1 +restore [locate_data_file bug25354_e2.brep] b2 + +ttranslate b2 4 0 0 +bop b1 b2 +bopsection result + +set nb_v_good 1 +set nb_e_good 0 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 2 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_03 b/tests/bugs/modalg_5/bug25354_03 new file mode 100644 index 0000000000..f67696166b --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_03 @@ -0,0 +1,28 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 03 + +restore [locate_data_file bug25354_e1.brep] b1 +restore [locate_data_file bug25354_e2.brep] b2 + +ttranslate b2 4 0 -4 +bop b1 b2 +bopsection result + +set nb_v_good 1 +set nb_e_good 0 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 2 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_04 b/tests/bugs/modalg_5/bug25354_04 new file mode 100644 index 0000000000..1466b0e9d9 --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_04 @@ -0,0 +1,31 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 04 + +restore [locate_data_file bug25354_e1.brep] b1 + +tcopy b1 b2 +ttranslate b2 4 0 0 + +bop b1 b2 +bopsection result + +set length 6 + +set nb_v_good 2 +set nb_e_good 1 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 4 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_05 b/tests/bugs/modalg_5/bug25354_05 new file mode 100644 index 0000000000..ff6d85772e --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_05 @@ -0,0 +1,27 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 05 + +restore [locate_data_file bug25354_e2.brep] b1 +restore [locate_data_file bug25354_f1.brep] b2 + +bop b1 b2 +bopsection result + +set nb_v_good 1 +set nb_e_good 0 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 2 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_06 b/tests/bugs/modalg_5/bug25354_06 new file mode 100644 index 0000000000..b11b09ca22 --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_06 @@ -0,0 +1,29 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 06 + +restore [locate_data_file bug25354_e2.brep] b1 +restore [locate_data_file bug25354_f1.brep] b2 + +ttranslate b1 0 4 0 + +bop b1 b2 +bopsection result + +set nb_v_good 1 +set nb_e_good 0 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 2 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_07 b/tests/bugs/modalg_5/bug25354_07 new file mode 100644 index 0000000000..c457c04ae1 --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_07 @@ -0,0 +1,29 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 07 + +restore [locate_data_file bug25354_e2.brep] b1 +restore [locate_data_file bug25354_f1.brep] b2 + +ttranslate b1 0 4 -4 + +bop b1 b2 +bopsection result + +set nb_v_good 1 +set nb_e_good 0 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 2 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_08 b/tests/bugs/modalg_5/bug25354_08 new file mode 100644 index 0000000000..8a6984a089 --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_08 @@ -0,0 +1,29 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 08 + +restore [locate_data_file bug25354_e2.brep] b1 +restore [locate_data_file bug25354_f1.brep] b2 + +ttranslate b1 4 4 -4 + +bop b1 b2 +bopsection result + +set nb_v_good 1 +set nb_e_good 0 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 2 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_09 b/tests/bugs/modalg_5/bug25354_09 new file mode 100644 index 0000000000..717ce29161 --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_09 @@ -0,0 +1,29 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 09 + +restore [locate_data_file bug25354_e2.brep] b1 +restore [locate_data_file bug25354_f1.brep] b2 + +ttranslate b1 4 4 0 + +bop b1 b2 +bopsection result + +set nb_v_good 1 +set nb_e_good 0 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 2 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_10 b/tests/bugs/modalg_5/bug25354_10 new file mode 100644 index 0000000000..f3f51e2d7e --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_10 @@ -0,0 +1,31 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 10 + +restore [locate_data_file bug25354_e1.brep] b1 +restore [locate_data_file bug25354_f1.brep] b2 + +ttranslate b1 -2 4 0 + +bop b1 b2 +bopsection result + +set length 8 + +set nb_v_good 2 +set nb_e_good 1 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 4 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_11 b/tests/bugs/modalg_5/bug25354_11 new file mode 100644 index 0000000000..664bda2c0d --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_11 @@ -0,0 +1,31 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 11 + +restore [locate_data_file bug25354_e1.brep] b1 +restore [locate_data_file bug25354_f1.brep] b2 + +ttranslate b1 -2 0 0 + +bop b1 b2 +bopsection result + +set length 8 + +set nb_v_good 2 +set nb_e_good 1 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 4 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_12 b/tests/bugs/modalg_5/bug25354_12 new file mode 100644 index 0000000000..715a44af60 --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_12 @@ -0,0 +1,29 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 12 + +restore [locate_data_file bug25354_f1.brep] b1 + +tcopy b1 b2 +ttranslate b2 10 10 0 + +bop b1 b2 +bopsection result + +set nb_v_good 1 +set nb_e_good 0 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 2 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_13 b/tests/bugs/modalg_5/bug25354_13 new file mode 100644 index 0000000000..71443453fe --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_13 @@ -0,0 +1,31 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 13 + +restore [locate_data_file bug25354_f1.brep] b1 + +tcopy b1 b2 +ttranslate b2 4 10 0 + +bop b1 b2 +bopsection result + +set length 6 + +set nb_v_good 2 +set nb_e_good 1 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 4 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_14 b/tests/bugs/modalg_5/bug25354_14 new file mode 100644 index 0000000000..037906a523 --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_14 @@ -0,0 +1,31 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 14 + +restore [locate_data_file bug25354_f1.brep] b1 + +tcopy b1 b2 +ttranslate b2 3 4 0 + +bop b1 b2 +bopsection result + +set length 26 + +set nb_v_good 4 +set nb_e_good 4 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 9 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_15 b/tests/bugs/modalg_5/bug25354_15 new file mode 100644 index 0000000000..b52413b4ee --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_15 @@ -0,0 +1,29 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 15 + +restore [locate_data_file bug25354_f1.brep] b1 +restore [locate_data_file bug25354_f2.brep] b2 + +ttranslate b2 -10 4 0 + +bop b1 b2 +bopsection result + +set nb_v_good 1 +set nb_e_good 0 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 2 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_16 b/tests/bugs/modalg_5/bug25354_16 new file mode 100644 index 0000000000..1d34896b82 --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_16 @@ -0,0 +1,31 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 16 + +restore [locate_data_file bug25354_f1.brep] b1 +restore [locate_data_file bug25354_f2.brep] b2 + +ttranslate b2 -6 0 0 + +bop b1 b2 +bopsection result + +set length 4 + +set nb_v_good 2 +set nb_e_good 1 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 4 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_17 b/tests/bugs/modalg_5/bug25354_17 new file mode 100644 index 0000000000..b102f9f14b --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_17 @@ -0,0 +1,31 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 17 + +restore [locate_data_file bug25354_f1.brep] b1 +restore [locate_data_file bug25354_f2.brep] b2 + +ttranslate b2 -6 4 0 + +bop b1 b2 +bopsection result + +set length 4 + +set nb_v_good 2 +set nb_e_good 1 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 4 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_18 b/tests/bugs/modalg_5/bug25354_18 new file mode 100644 index 0000000000..191334dbe1 --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_18 @@ -0,0 +1,31 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 18 + +restore [locate_data_file bug25354_f1.brep] b1 +restore [locate_data_file bug25354_f2.brep] b2 + +ttranslate b2 -6 4 -3 + +bop b1 b2 +bopsection result + +set length 4 + +set nb_v_good 2 +set nb_e_good 1 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 4 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_19 b/tests/bugs/modalg_5/bug25354_19 new file mode 100644 index 0000000000..56bab29ed1 --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_19 @@ -0,0 +1,29 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 19 + +restore [locate_data_file bug25354_e1.brep] b1 + +box b2 10 10 10 +ttranslate b1 -10 0 10 + +bop b1 b2 +bopsection result + +set nb_v_good 1 +set nb_e_good 0 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 2 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_20 b/tests/bugs/modalg_5/bug25354_20 new file mode 100644 index 0000000000..5efaea3cd2 --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_20 @@ -0,0 +1,29 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 20 + +restore [locate_data_file bug25354_e1.brep] b1 + +box b2 10 10 10 +ttranslate b1 4 0 0 + +bop b1 b2 +bopsection result + +set nb_v_good 2 +set nb_e_good 1 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 4 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_21 b/tests/bugs/modalg_5/bug25354_21 new file mode 100644 index 0000000000..dc22ebf724 --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_21 @@ -0,0 +1,29 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 21 + +restore [locate_data_file bug25354_e1.brep] b1 + +box b2 10 10 10 +ttranslate b1 -10 3 0 + +bop b1 b2 +bopsection result + +set nb_v_good 1 +set nb_e_good 0 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 2 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_22 b/tests/bugs/modalg_5/bug25354_22 new file mode 100644 index 0000000000..f77a121674 --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_22 @@ -0,0 +1,29 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 22 + +restore [locate_data_file bug25354_e1.brep] b1 + +box b2 10 10 10 +ttranslate b1 -10 3 4 + +bop b1 b2 +bopsection result + +set nb_v_good 1 +set nb_e_good 0 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 2 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_23 b/tests/bugs/modalg_5/bug25354_23 new file mode 100644 index 0000000000..fa59d78b3f --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_23 @@ -0,0 +1,29 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 23 + +restore [locate_data_file bug25354_e1.brep] b1 + +box b2 10 10 10 +ttranslate b1 -6 3 4 + +bop b1 b2 +bopsection result + +set nb_v_good 1 +set nb_e_good 0 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 2 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_24 b/tests/bugs/modalg_5/bug25354_24 new file mode 100644 index 0000000000..15be7be442 --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_24 @@ -0,0 +1,29 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 24 + +restore [locate_data_file bug25354_e1.brep] b1 + +box b2 10 10 10 +ttranslate b1 -6 0 4 + +bop b1 b2 +bopsection result + +set nb_v_good 2 +set nb_e_good 1 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 4 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_25 b/tests/bugs/modalg_5/bug25354_25 new file mode 100644 index 0000000000..6d54a2d225 --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_25 @@ -0,0 +1,29 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 25 + +restore [locate_data_file bug25354_f1.brep] b1 + +box b2 10 10 10 +ttranslate b1 -10 -10 0 + +bop b1 b2 +bopsection result + +set nb_v_good 1 +set nb_e_good 0 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 2 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_26 b/tests/bugs/modalg_5/bug25354_26 new file mode 100644 index 0000000000..1e44795c04 --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_26 @@ -0,0 +1,30 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 26 + +restore [locate_data_file bug25354_f1.brep] b1 + +ttranslate b1 -5 -10 0 +trotate b1 5 0 0 0 0 1 45 +box b2 10 10 10 + +bop b1 b2 +bopsection result + +set nb_v_good 1 +set nb_e_good 0 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 2 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_27 b/tests/bugs/modalg_5/bug25354_27 new file mode 100644 index 0000000000..0c4f3eac40 --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_27 @@ -0,0 +1,29 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 27 + +restore [locate_data_file bug25354_f1.brep] b1 + +box b2 10 10 10 +ttranslate b1 3 -10 0 + +bop b1 b2 +bopsection result + +set nb_v_good 2 +set nb_e_good 1 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 4 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_28 b/tests/bugs/modalg_5/bug25354_28 new file mode 100644 index 0000000000..e46471c6d7 --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_28 @@ -0,0 +1,30 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 28 + +restore [locate_data_file bug25354_f1.brep] b1 + +ttranslate b1 -5 -10 4 +trotate b1 5 0 0 0 0 1 45 +box b2 10 10 10 + +bop b1 b2 +bopsection result + +set nb_v_good 1 +set nb_e_good 0 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 2 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_29 b/tests/bugs/modalg_5/bug25354_29 new file mode 100644 index 0000000000..ba7c479930 --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_29 @@ -0,0 +1,29 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 29 + +restore [locate_data_file bug25354_f1.brep] b1 + +box b2 10 10 10 +ttranslate b1 3 -10 6 + +bop b1 b2 +bopsection result + +set nb_v_good 2 +set nb_e_good 1 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 4 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_30 b/tests/bugs/modalg_5/bug25354_30 new file mode 100644 index 0000000000..55da787a50 --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_30 @@ -0,0 +1,29 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 30 + +restore [locate_data_file bug25354_f1.brep] b1 + +box b2 10 10 10 +ttranslate b1 3 -5 6 + +bop b1 b2 +bopsection result + +set nb_v_good 3 +set nb_e_good 2 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 6 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_31 b/tests/bugs/modalg_5/bug25354_31 new file mode 100644 index 0000000000..6993858346 --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_31 @@ -0,0 +1,29 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 31 + +restore [locate_data_file bug25354_f1.brep] b1 + +box b2 10 10 10 +ttranslate b1 3 4 0 + +bop b1 b2 +bopsection result + +set nb_v_good 4 +set nb_e_good 4 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 9 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_32 b/tests/bugs/modalg_5/bug25354_32 new file mode 100644 index 0000000000..acc55b57f0 --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_32 @@ -0,0 +1,28 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 32 + +box b1 10 10 10 +box b2 10 10 10 +ttranslate b2 -10 -10 -10 + +bop b1 b2 +bopsection result + +set nb_v_good 1 +set nb_e_good 0 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 2 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_33 b/tests/bugs/modalg_5/bug25354_33 new file mode 100644 index 0000000000..36295b7227 --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_33 @@ -0,0 +1,29 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 33 + +box b1 10 10 10 +box b2 10 10 10 +ttranslate b2 5 -10 -10 +trotate b2 5 0 0 0 0 1 -45 + +bop b1 b2 +bopsection result + +set nb_v_good 1 +set nb_e_good 0 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 2 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_34 b/tests/bugs/modalg_5/bug25354_34 new file mode 100644 index 0000000000..18c7a6c595 --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_34 @@ -0,0 +1,30 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 34 + +box b1 10 10 10 +box b2 10 10 10 +ttranslate b2 5 -10 -4 +trotate b2 5 0 0 0 0 1 -45 +trotate b2 5 0 0 1 0 0 45 + +bop b1 b2 +bopsection result + +set nb_v_good 1 +set nb_e_good 0 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 2 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_35 b/tests/bugs/modalg_5/bug25354_35 new file mode 100644 index 0000000000..d5a3fb320a --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_35 @@ -0,0 +1,28 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 35 + +box b1 10 10 10 +box b2 10 10 10 +ttranslate b2 -10 -10 -4 + +bop b1 b2 +bopsection result + +set nb_v_good 2 +set nb_e_good 1 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 4 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_36 b/tests/bugs/modalg_5/bug25354_36 new file mode 100644 index 0000000000..8c7259c8f1 --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_36 @@ -0,0 +1,29 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 36 + +box b1 10 10 10 +box b2 10 10 10 +ttranslate b2 5 -10 -4 +trotate b2 5 0 0 0 0 1 -45 + +bop b1 b2 +bopsection result + +set nb_v_good 2 +set nb_e_good 1 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 4 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_37 b/tests/bugs/modalg_5/bug25354_37 new file mode 100644 index 0000000000..15b4e81f5a --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_37 @@ -0,0 +1,28 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 37 + +box b1 10 10 10 +box b2 10 10 10 +ttranslate b2 10 3 4 + +bop b1 b2 +bopsection result + +set nb_v_good 4 +set nb_e_good 4 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 9 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_38 b/tests/bugs/modalg_5/bug25354_38 new file mode 100644 index 0000000000..405fd9f054 --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_38 @@ -0,0 +1,28 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 38 + +box b1 10 10 10 +box b2 10 10 10 +ttranslate b2 5 3 4 + +bop b1 b2 +bopsection result + +set nb_v_good 6 +set nb_e_good 6 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 13 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_39 b/tests/bugs/modalg_5/bug25354_39 new file mode 100644 index 0000000000..7008f4554f --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_39 @@ -0,0 +1,27 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 39 + +vertex b1 0 0 0 +vertex b2 0 0 0 + +bop b1 b2 +bopsection result + +set nb_v_good 1 +set nb_e_good 0 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 2 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_40 b/tests/bugs/modalg_5/bug25354_40 new file mode 100644 index 0000000000..35bbcb2322 --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_40 @@ -0,0 +1,29 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 40 + +vertex b1 4 0 0 +vertex ba 0 0 0 +vertex bb 10 0 0 +edge b2 ba bb + +bop b1 b2 +bopsection result + +set nb_v_good 1 +set nb_e_good 0 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 2 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_41 b/tests/bugs/modalg_5/bug25354_41 new file mode 100644 index 0000000000..f2000ec54e --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_41 @@ -0,0 +1,29 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 41 + +vertex b1 0 0 0 +vertex ba 0 0 0 +vertex bb 10 0 0 +edge b2 ba bb + +bop b1 b2 +bopsection result + +set nb_v_good 1 +set nb_e_good 0 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 2 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_42 b/tests/bugs/modalg_5/bug25354_42 new file mode 100644 index 0000000000..c074506451 --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_42 @@ -0,0 +1,27 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 42 + +vertex b1 0 0 0 +restore [locate_data_file bug25354_f1.brep] b2 + +bop b1 b2 +bopsection result + +set nb_v_good 1 +set nb_e_good 0 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 2 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_43 b/tests/bugs/modalg_5/bug25354_43 new file mode 100644 index 0000000000..662fb8700c --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_43 @@ -0,0 +1,27 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 43 + +vertex b1 4 0 0 +restore [locate_data_file bug25354_f1.brep] b2 + +bop b1 b2 +bopsection result + +set nb_v_good 1 +set nb_e_good 0 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 2 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_44 b/tests/bugs/modalg_5/bug25354_44 new file mode 100644 index 0000000000..646b601b89 --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_44 @@ -0,0 +1,27 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 44 + +vertex b1 4 3 0 +restore [locate_data_file bug25354_f1.brep] b2 + +bop b1 b2 +bopsection result + +set nb_v_good 1 +set nb_e_good 0 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 2 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_45 b/tests/bugs/modalg_5/bug25354_45 new file mode 100644 index 0000000000..bb0bbc67c2 --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_45 @@ -0,0 +1,27 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 45 + +vertex b1 0 0 0 +box b2 10 10 10 + +bop b1 b2 +bopsection result + +set nb_v_good 1 +set nb_e_good 0 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 2 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_46 b/tests/bugs/modalg_5/bug25354_46 new file mode 100644 index 0000000000..25f7a8070e --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_46 @@ -0,0 +1,26 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 46 + +vertex b1 4 0 0 +box b2 10 10 10 +bop b1 b2 +bopsection result + +set nb_v_good 1 +set nb_e_good 0 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 2 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_47 b/tests/bugs/modalg_5/bug25354_47 new file mode 100644 index 0000000000..d65d9211a7 --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_47 @@ -0,0 +1,27 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 47 + +vertex b1 4 3 0 +box b2 10 10 10 + +bop b1 b2 +bopsection result + +set nb_v_good 1 +set nb_e_good 0 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 2 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_48 b/tests/bugs/modalg_5/bug25354_48 new file mode 100644 index 0000000000..d4aeee35de --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_48 @@ -0,0 +1,27 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 48 + +vertex b1 4 3 2 +box b2 10 10 10 + +bop b1 b2 +bopsection result + +set nb_v_good 0 +set nb_e_good 0 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 1 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_49 b/tests/bugs/modalg_5/bug25354_49 new file mode 100644 index 0000000000..9f70892623 --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_49 @@ -0,0 +1,60 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +#Case 49 + +box b 100 100 100 +explode b f + +set aLF {} +set N 10 + +for {set i 1} {$i < $N} {incr i} { + tcopy b_1 f1_${i} + ttranslate f1_${i} [expr $i * 10] 0. 0. + lappend aLF f1_${i} +} + +for {set i 1} {$i < $N} {incr i} { + tcopy b_3 f3_${i} + ttranslate f3_${i} 0. [expr $i * 10] 0. + lappend aLF f3_${i} +} + +for {set i 1} {$i < $N} {incr i} { + tcopy b_5 f5_${i} + ttranslate f5_${i} 0. 0. [expr $i * 10] + lappend aLF f5_${i} +} +# +set N 11 +for {set i 1} {$i < $N} {incr i} { + psphere s_${i} [expr $i * 5] + ttranslate s_${i} 50 50 50 + lappend aLF s_${i} +} + +eval compound $aLF q + +bclearobjects +bcleartools +baddcompound q +bfillds -t +bbop result 4 -t + +set nb_v_good 2781 +set nb_e_good 7332 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 10114 + +set 2dviewer 1 diff --git a/tests/bugs/modalg_5/bug25354_50 b/tests/bugs/modalg_5/bug25354_50 new file mode 100644 index 0000000000..4efb6383be --- /dev/null +++ b/tests/bugs/modalg_5/bug25354_50 @@ -0,0 +1,43 @@ +puts "============" +puts "OCC25354" +puts "============" +puts "" +####################################################################### +# Intersection operation +####################################################################### + +# Case 50 + +set aLS {} + +box b 10 10 10 +ttranslate b -5 -5 -5 + +set N 41 + +for {set i 0} {$i < $N} {incr i} { + psphere b{$i} [expr $i * 0.1 + 5.] + explode b{$i} f + lappend aLS b{$i}_1 +} +eval compound $aLS q + + +bclearobjects +bcleartools +baddobjects b +baddtools q +bfillds -t +bbop result 4 -t + +set nb_v_good 530 +set nb_e_good 524 +set nb_w_good 0 +set nb_f_good 0 +set nb_sh_good 0 +set nb_sol_good 0 +set nb_compsol_good 0 +set nb_compound_good 1 +set nb_shape_good 1055 + +set 2dviewer 1