0029351: Boolean Operations create invalid pcurves
[occt.git] / tests / bugs / modalg_2 / bug497_1
CommitLineData
a87752f3 1puts "========="
2puts " OCC497 "
3puts "(case 1)"
4puts "========="
5puts ""
6########################################################
7## Result of cut and fuse operation are faulty shapes although arguments are valid.
8########################################################
9
10restore [locate_data_file OCC497a.brep] a_1
352ffd73 11checkshape a_1
a87752f3 12
13restore [locate_data_file OCC497b.brep] a_2
352ffd73 14checkshape a_2
a87752f3 15
69b558c4 16explode a_2 so
17bop a_2_1 a_2_2
18bopfuse r1
19
20if [catch {bcut result a_1 r1 } catch_result] {
a87752f3 21 puts "Faulty OCC497:function CUT works wrongly "
22} else {
23 puts "OCC497 : function CUT works without hangs up "
24}
58cf74e0 25checkprops result -s 646.969
26checkshape result
5747059b 27checkview -display result -2d -path ${imagedir}/${test_image}.png