0029351: Boolean Operations create invalid pcurves
[occt.git] / tests / bugs / modalg_4 / bug951_3
CommitLineData
352ffd73 1puts "========="
2puts " OCC951 "
3puts "========="
4puts ""
5##################################################
6##BRepAlgoAPI_Section and BRepAlgoAPI_Common fail on given shapes
7##################################################
8## (old topology)
9## (common)
10## (section)
11######################################################
12
13restore [locate_data_file OCC951_1.brep] b
14restore [locate_data_file OCC951_2.brep] a
15
16checkshape b
17checkshape a
18
19bsection result b a
20
21set nb_info [nbshapes result]
22regexp {VERTEX +: +([-0-9.+eE]+)} $nb_info full ve
23regexp {EDGE +: +([-0-9.+eE]+)} $nb_info full ed
24regexp {WIRE +: +([-0-9.+eE]+)} $nb_info full wi
25regexp {FACE +: +([-0-9.+eE]+)} $nb_info full fa
26regexp {SHELL +: +([-0-9.+eE]+)} $nb_info full sh
27regexp {SOLID +: +([-0-9.+eE]+)} $nb_info full so
28regexp {COMPSOLID +: +([-0-9.+eE]+)} $nb_info full cm
29regexp {COMPOUND +: +([-0-9.+eE]+)} $nb_info full co
30regexp {SHAPE +: +([-0-9.+eE]+)} $nb_info full shl
31if { $ve != 0 || $ed != 0 || $wi != 0 || $fa != 0 || $sh != 0 || $so != 0 || $cm != 0 || $co != 0 || $shl != 0 } {
32 puts " OCC951 : COMMON operation was made PROPERLY"
33} else {
34 puts "Faulty OCC951 : result of COMMON operation is EMPTY compound"
35}
36
58cf74e0 37checkprops result -l 39.8616
38checkshape result
39checksection result
5747059b 40checkview -display result -3d -path ${imagedir}/${test_image}.png