0025624: Visualization - selection is incorrect in perspective mode in a specific...
[occt.git] / tests / bugs / modalg_4 / bug951_5
CommitLineData
61c421bf 1puts "========="
2puts " OCC951 "
3puts "========="
4puts ""
5##################################################
6##BRepAlgoAPI_Section and BRepAlgoAPI_Common fail on given shapes
7##################################################
8## (new topology)
9## (bopcommon)
10## (bopsection)
11######################################################
12
13restore [locate_data_file OCC951_1.brep] b
14restore [locate_data_file OCC951_2.brep] a
15
16checkshape b
17checkshape a
18
19############
20bop a b
21bopcommon result
22############
23set nb_info [nbshapes result]
24regexp {VERTEX +: +([-0-9.+eE]+)} $nb_info full ve
25regexp {EDGE +: +([-0-9.+eE]+)} $nb_info full ed
26regexp {WIRE +: +([-0-9.+eE]+)} $nb_info full wi
27regexp {FACE +: +([-0-9.+eE]+)} $nb_info full fa
28regexp {SHELL +: +([-0-9.+eE]+)} $nb_info full sh
29regexp {SOLID +: +([-0-9.+eE]+)} $nb_info full so
30regexp {COMPSOLID +: +([-0-9.+eE]+)} $nb_info full cm
31regexp {COMPOUND +: +([-0-9.+eE]+)} $nb_info full co
32regexp {SHAPE +: +([-0-9.+eE]+)} $nb_info full shl
33
34if { $ve != 0 || $ed != 0 || $wi != 0 || $fa != 0 || $sh != 0 || $so != 0 || $cm != 0 || $co != 0 || $shl != 0 } {
35 puts " OCC951 : COMMON operation was made PROPERLY"
36 puts ""
37} else {
38 puts "Faulty OCC951 : result of COMMON operation is EMPTY compound"
39 puts ""
40}
41
42set square 560.908
43set 3dviewer 0