0024861: Extra solid is in the result of General Fuse Operation
[occt.git] / tests / bugs / modalg_2 / bug497_1
1 puts "========="
2 puts " OCC497 "
3 puts "(case 1)"
4 puts "========="
5 puts ""
6 ########################################################
7 ## Result of cut and fuse operation are faulty shapes although arguments are valid.
8 ########################################################
9
10 restore [locate_data_file OCC497a.brep] a_1 
11 checkshape a_1
12
13 restore [locate_data_file OCC497b.brep] a_2
14 checkshape a_2
15
16 explode a_2 so
17 bop a_2_1 a_2_2
18 bopfuse r1
19
20 if [catch {bcut result a_1 r1 } catch_result] {
21     puts "Faulty OCC497:function CUT works wrongly "
22 } else {
23     puts "OCC497 : function CUT works without hangs up "
24 }
25 set square 646.969
26 set 2dviewer 0