mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-04 18:06:22 +03:00
0025354: Intersection operation
Adding test cases
This commit is contained in:
parent
f70d6437bd
commit
90a9485514
27
tests/bugs/modalg_5/bug25354_01
Normal file
27
tests/bugs/modalg_5/bug25354_01
Normal file
@ -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
|
28
tests/bugs/modalg_5/bug25354_02
Normal file
28
tests/bugs/modalg_5/bug25354_02
Normal file
@ -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
|
28
tests/bugs/modalg_5/bug25354_03
Normal file
28
tests/bugs/modalg_5/bug25354_03
Normal file
@ -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
|
31
tests/bugs/modalg_5/bug25354_04
Normal file
31
tests/bugs/modalg_5/bug25354_04
Normal file
@ -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
|
27
tests/bugs/modalg_5/bug25354_05
Normal file
27
tests/bugs/modalg_5/bug25354_05
Normal file
@ -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
|
29
tests/bugs/modalg_5/bug25354_06
Normal file
29
tests/bugs/modalg_5/bug25354_06
Normal file
@ -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
|
29
tests/bugs/modalg_5/bug25354_07
Normal file
29
tests/bugs/modalg_5/bug25354_07
Normal file
@ -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
|
29
tests/bugs/modalg_5/bug25354_08
Normal file
29
tests/bugs/modalg_5/bug25354_08
Normal file
@ -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
|
29
tests/bugs/modalg_5/bug25354_09
Normal file
29
tests/bugs/modalg_5/bug25354_09
Normal file
@ -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
|
31
tests/bugs/modalg_5/bug25354_10
Normal file
31
tests/bugs/modalg_5/bug25354_10
Normal file
@ -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
|
31
tests/bugs/modalg_5/bug25354_11
Normal file
31
tests/bugs/modalg_5/bug25354_11
Normal file
@ -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
|
29
tests/bugs/modalg_5/bug25354_12
Normal file
29
tests/bugs/modalg_5/bug25354_12
Normal file
@ -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
|
31
tests/bugs/modalg_5/bug25354_13
Normal file
31
tests/bugs/modalg_5/bug25354_13
Normal file
@ -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
|
31
tests/bugs/modalg_5/bug25354_14
Normal file
31
tests/bugs/modalg_5/bug25354_14
Normal file
@ -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
|
29
tests/bugs/modalg_5/bug25354_15
Normal file
29
tests/bugs/modalg_5/bug25354_15
Normal file
@ -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
|
31
tests/bugs/modalg_5/bug25354_16
Normal file
31
tests/bugs/modalg_5/bug25354_16
Normal file
@ -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
|
31
tests/bugs/modalg_5/bug25354_17
Normal file
31
tests/bugs/modalg_5/bug25354_17
Normal file
@ -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
|
31
tests/bugs/modalg_5/bug25354_18
Normal file
31
tests/bugs/modalg_5/bug25354_18
Normal file
@ -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
|
29
tests/bugs/modalg_5/bug25354_19
Normal file
29
tests/bugs/modalg_5/bug25354_19
Normal file
@ -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
|
29
tests/bugs/modalg_5/bug25354_20
Normal file
29
tests/bugs/modalg_5/bug25354_20
Normal file
@ -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
|
29
tests/bugs/modalg_5/bug25354_21
Normal file
29
tests/bugs/modalg_5/bug25354_21
Normal file
@ -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
|
29
tests/bugs/modalg_5/bug25354_22
Normal file
29
tests/bugs/modalg_5/bug25354_22
Normal file
@ -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
|
29
tests/bugs/modalg_5/bug25354_23
Normal file
29
tests/bugs/modalg_5/bug25354_23
Normal file
@ -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
|
29
tests/bugs/modalg_5/bug25354_24
Normal file
29
tests/bugs/modalg_5/bug25354_24
Normal file
@ -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
|
29
tests/bugs/modalg_5/bug25354_25
Normal file
29
tests/bugs/modalg_5/bug25354_25
Normal file
@ -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
|
30
tests/bugs/modalg_5/bug25354_26
Normal file
30
tests/bugs/modalg_5/bug25354_26
Normal file
@ -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
|
29
tests/bugs/modalg_5/bug25354_27
Normal file
29
tests/bugs/modalg_5/bug25354_27
Normal file
@ -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
|
30
tests/bugs/modalg_5/bug25354_28
Normal file
30
tests/bugs/modalg_5/bug25354_28
Normal file
@ -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
|
29
tests/bugs/modalg_5/bug25354_29
Normal file
29
tests/bugs/modalg_5/bug25354_29
Normal file
@ -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
|
29
tests/bugs/modalg_5/bug25354_30
Normal file
29
tests/bugs/modalg_5/bug25354_30
Normal file
@ -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
|
29
tests/bugs/modalg_5/bug25354_31
Normal file
29
tests/bugs/modalg_5/bug25354_31
Normal file
@ -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
|
28
tests/bugs/modalg_5/bug25354_32
Normal file
28
tests/bugs/modalg_5/bug25354_32
Normal file
@ -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
|
29
tests/bugs/modalg_5/bug25354_33
Normal file
29
tests/bugs/modalg_5/bug25354_33
Normal file
@ -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
|
30
tests/bugs/modalg_5/bug25354_34
Normal file
30
tests/bugs/modalg_5/bug25354_34
Normal file
@ -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
|
28
tests/bugs/modalg_5/bug25354_35
Normal file
28
tests/bugs/modalg_5/bug25354_35
Normal file
@ -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
|
29
tests/bugs/modalg_5/bug25354_36
Normal file
29
tests/bugs/modalg_5/bug25354_36
Normal file
@ -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
|
28
tests/bugs/modalg_5/bug25354_37
Normal file
28
tests/bugs/modalg_5/bug25354_37
Normal file
@ -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
|
28
tests/bugs/modalg_5/bug25354_38
Normal file
28
tests/bugs/modalg_5/bug25354_38
Normal file
@ -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
|
27
tests/bugs/modalg_5/bug25354_39
Normal file
27
tests/bugs/modalg_5/bug25354_39
Normal file
@ -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
|
29
tests/bugs/modalg_5/bug25354_40
Normal file
29
tests/bugs/modalg_5/bug25354_40
Normal file
@ -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
|
29
tests/bugs/modalg_5/bug25354_41
Normal file
29
tests/bugs/modalg_5/bug25354_41
Normal file
@ -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
|
27
tests/bugs/modalg_5/bug25354_42
Normal file
27
tests/bugs/modalg_5/bug25354_42
Normal file
@ -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
|
27
tests/bugs/modalg_5/bug25354_43
Normal file
27
tests/bugs/modalg_5/bug25354_43
Normal file
@ -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
|
27
tests/bugs/modalg_5/bug25354_44
Normal file
27
tests/bugs/modalg_5/bug25354_44
Normal file
@ -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
|
27
tests/bugs/modalg_5/bug25354_45
Normal file
27
tests/bugs/modalg_5/bug25354_45
Normal file
@ -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
|
26
tests/bugs/modalg_5/bug25354_46
Normal file
26
tests/bugs/modalg_5/bug25354_46
Normal file
@ -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
|
27
tests/bugs/modalg_5/bug25354_47
Normal file
27
tests/bugs/modalg_5/bug25354_47
Normal file
@ -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
|
27
tests/bugs/modalg_5/bug25354_48
Normal file
27
tests/bugs/modalg_5/bug25354_48
Normal file
@ -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
|
60
tests/bugs/modalg_5/bug25354_49
Normal file
60
tests/bugs/modalg_5/bug25354_49
Normal file
@ -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
|
43
tests/bugs/modalg_5/bug25354_50
Normal file
43
tests/bugs/modalg_5/bug25354_50
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user