1
0
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:
mkv 2014-11-21 13:24:35 +03:00 committed by bugmaster
parent f70d6437bd
commit 90a9485514
50 changed files with 1487 additions and 0 deletions

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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