0030202: IntPatch_WLineTool::JoinWLines array out of bounds
[occt.git] / tests / bugs / modalg_7 / bug29179
CommitLineData
6f1ea0f4 1puts "========"
2puts "OCC29179"
3puts "========"
4puts ""
5#################################################
6# Result of Boolean common depends on an order of arguments
7#################################################
8
9restore [locate_data_file bug26938.brep] a
10explode a
11
12bcommon res1 a_1 a_2
13
14restore [locate_data_file bug26938.brep] a
15explode a
16
17bcommon res2 a_2 a_1
18
19checkview -display res1 -2d -path ${imagedir}/${test_image}_1.png
20checkview -display res2 -2d -path ${imagedir}/${test_image}_2.png
21
22checkshape res1
23checkshape res2
24
25if {[regexp "Faulties" [bopargcheck res1]]} {
26 puts "Error: bopargcheck has found some faulties in res1"
27}
28
29if {[regexp "Faulties" [bopargcheck res2]]} {
30 puts "Error: bopargcheck has found some faulties in res2"
31}
32
33checkprops res1 -v 4.93528e+008
34checkprops res2 -v 4.93528e+008
35
36set nbshapes_expected "
37Number of shapes in .*
38 VERTEX : 5
39 EDGE : 7
40 WIRE : 4
41 FACE : 4
42 SHELL : 1
43 SOLID : 1
44 COMPSOLID : 0
45 COMPOUND : 1
46 SHAPE : 23
47"
48
49checknbshapes res1 -ref ${nbshapes_expected} -t -m "1st COMMON"
50checknbshapes res2 -ref ${nbshapes_expected} -t -m "2nd COMMON"