mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0024825: Fit Boolean Operation Algorithm to treat multiple arguments.
class BOPTest class BOPAlgo_BOP class BOPAlgo_Builder class BOPTest class BRepFeat_Builder class BRepFeat_MakeCylindricalHole The format of the command has been changed: bbop r op [-s -t] The following options has been added: -s - run in serial mode -t - print the CPU time Test cases for issue CR24825
This commit is contained in:
2
tests/boolean/bcommon_2d/A7
Normal file → Executable file
2
tests/boolean/bcommon_2d/A7
Normal file → Executable file
@@ -3,4 +3,4 @@ restore [locate_data_file case_1_wire3.brep] b
|
||||
bcommon result b a
|
||||
set length 942.478
|
||||
set nbsh_v 2
|
||||
set nbsh_e 4
|
||||
set nbsh_e 2
|
||||
|
2
tests/boolean/bcommon_2d/B1
Normal file → Executable file
2
tests/boolean/bcommon_2d/B1
Normal file → Executable file
@@ -3,4 +3,4 @@ restore [locate_data_file case_1_wire3.brep] b
|
||||
bcommon result b a
|
||||
set length 942.478
|
||||
set nbsh_v 2
|
||||
set nbsh_e 4
|
||||
set nbsh_e 2
|
||||
|
2
tests/boolean/bopcommon_2d/A7
Normal file → Executable file
2
tests/boolean/bopcommon_2d/A7
Normal file → Executable file
@@ -4,4 +4,4 @@ bop a b
|
||||
bopcommon result
|
||||
set length 942.478
|
||||
set nbsh_v 2
|
||||
set nbsh_e 4
|
||||
set nbsh_e 2
|
||||
|
2
tests/boolean/bopcommon_2d/B1
Normal file → Executable file
2
tests/boolean/bopcommon_2d/B1
Normal file → Executable file
@@ -4,4 +4,4 @@ bop a b
|
||||
bopcommon result
|
||||
set length 942.478
|
||||
set nbsh_v 2
|
||||
set nbsh_e 4
|
||||
set nbsh_e 2
|
||||
|
58
tests/bugs/modalg_5/bug24825_common
Normal file
58
tests/bugs/modalg_5/bug24825_common
Normal file
@@ -0,0 +1,58 @@
|
||||
puts "========="
|
||||
puts "OCC24825"
|
||||
puts "========="
|
||||
puts ""
|
||||
###########################################################
|
||||
# Fit Boolean Operation Algorithm to treat multiple arguments.
|
||||
###########################################################
|
||||
|
||||
restore [locate_data_file bug24825_steering-wheel-ring1.brep] b1
|
||||
restore [locate_data_file bug24825_steering-wheel-ring2.brep] b2
|
||||
restore [locate_data_file bug24825_steering-wheel-drum.brep] b4
|
||||
restore [locate_data_file bug24825_steering-wheel-handle.brep] hb
|
||||
|
||||
set qs {}
|
||||
|
||||
set N 10
|
||||
set N1 [expr 360. / $N ]
|
||||
|
||||
for {set i 0} {$i < $N} {incr i} {
|
||||
tcopy hb hb_${i}
|
||||
trotate hb_${i} 0. 0. 0. 0. 0. 1. [expr $i * $N1 ]
|
||||
lappend qs hb_${i}
|
||||
}
|
||||
eval compound $qs b3
|
||||
|
||||
tcopy b1 b5
|
||||
ttranslate b5 0 0 100
|
||||
|
||||
tcopy b2 b6
|
||||
ttranslate b6 0 0 100
|
||||
|
||||
tcopy b3 b7
|
||||
ttranslate b7 0 0 100
|
||||
|
||||
#-common-#
|
||||
|
||||
bclearobjects
|
||||
bcleartools
|
||||
baddobjects b2 b6 b4 b1 b5
|
||||
baddctools b3
|
||||
baddctools b7
|
||||
|
||||
bfillds
|
||||
bbop result 0
|
||||
|
||||
set square 10008.5
|
||||
|
||||
set nb_v_good 86
|
||||
set nb_e_good 132
|
||||
set nb_w_good 126
|
||||
set nb_f_good 126
|
||||
set nb_sh_good 40
|
||||
set nb_sol_good 40
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 551
|
||||
|
||||
set 2dviewer 1
|
58
tests/bugs/modalg_5/bug24825_cut
Normal file
58
tests/bugs/modalg_5/bug24825_cut
Normal file
@@ -0,0 +1,58 @@
|
||||
puts "========="
|
||||
puts "OCC24825"
|
||||
puts "========="
|
||||
puts ""
|
||||
###########################################################
|
||||
# Fit Boolean Operation Algorithm to treat multiple arguments.
|
||||
###########################################################
|
||||
|
||||
restore [locate_data_file bug24825_steering-wheel-ring1.brep] b1
|
||||
restore [locate_data_file bug24825_steering-wheel-ring2.brep] b2
|
||||
restore [locate_data_file bug24825_steering-wheel-drum.brep] b4
|
||||
restore [locate_data_file bug24825_steering-wheel-handle.brep] hb
|
||||
|
||||
set qs {}
|
||||
|
||||
set N 10
|
||||
set N1 [expr 360. / $N ]
|
||||
|
||||
for {set i 0} {$i < $N} {incr i} {
|
||||
tcopy hb hb_${i}
|
||||
trotate hb_${i} 0. 0. 0. 0. 0. 1. [expr $i * $N1 ]
|
||||
lappend qs hb_${i}
|
||||
}
|
||||
eval compound $qs b3
|
||||
|
||||
tcopy b1 b5
|
||||
ttranslate b5 0 0 100
|
||||
|
||||
tcopy b2 b6
|
||||
ttranslate b6 0 0 100
|
||||
|
||||
tcopy b3 b7
|
||||
ttranslate b7 0 0 100
|
||||
|
||||
#-cut-#
|
||||
|
||||
bclearobjects
|
||||
bcleartools
|
||||
baddobjects b2 b6 b4 b1 b5
|
||||
baddctools b3
|
||||
baddctools b7
|
||||
|
||||
bfillds
|
||||
bbop result 2
|
||||
|
||||
set square 103838
|
||||
|
||||
set nb_v_good 106
|
||||
set nb_e_good 164
|
||||
set nb_w_good 142
|
||||
set nb_f_good 80
|
||||
set nb_sh_good 3
|
||||
set nb_sol_good 3
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 499
|
||||
|
||||
set 2dviewer 1
|
59
tests/bugs/modalg_5/bug24825_fuse
Normal file
59
tests/bugs/modalg_5/bug24825_fuse
Normal file
@@ -0,0 +1,59 @@
|
||||
puts "========="
|
||||
puts "OCC24825"
|
||||
puts "========="
|
||||
puts ""
|
||||
###########################################################
|
||||
# Fit Boolean Operation Algorithm to treat multiple arguments.
|
||||
###########################################################
|
||||
|
||||
restore [locate_data_file bug24825_steering-wheel-ring1.brep] b1
|
||||
restore [locate_data_file bug24825_steering-wheel-ring2.brep] b2
|
||||
restore [locate_data_file bug24825_steering-wheel-drum.brep] b4
|
||||
restore [locate_data_file bug24825_steering-wheel-handle.brep] hb
|
||||
|
||||
set qs {}
|
||||
|
||||
set N 10
|
||||
set N1 [expr 360. / $N ]
|
||||
|
||||
for {set i 0} {$i < $N} {incr i} {
|
||||
tcopy hb hb_${i}
|
||||
trotate hb_${i} 0. 0. 0. 0. 0. 1. [expr $i * $N1 ]
|
||||
lappend qs hb_${i}
|
||||
}
|
||||
eval compound $qs b3
|
||||
|
||||
tcopy b1 b5
|
||||
ttranslate b5 0 0 100
|
||||
|
||||
tcopy b2 b6
|
||||
ttranslate b6 0 0 100
|
||||
|
||||
tcopy b3 b7
|
||||
ttranslate b7 0 0 100
|
||||
|
||||
#-fuse-#
|
||||
|
||||
bclearobjects
|
||||
bcleartools
|
||||
baddobjects b2 b6 b4
|
||||
baddtools b1 b5
|
||||
baddctools b3
|
||||
baddctools b7
|
||||
|
||||
bfillds
|
||||
bbop result 1
|
||||
|
||||
set square 157211
|
||||
|
||||
set nb_v_good 106
|
||||
set nb_e_good 164
|
||||
set nb_w_good 142
|
||||
set nb_f_good 80
|
||||
set nb_sh_good 1
|
||||
set nb_sol_good 1
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 495
|
||||
|
||||
set 2dviewer 1
|
Reference in New Issue
Block a user