0028567: Get rid of the unused DRAW commands based on old Boolean Operations (BRepAlgo)
[occt.git] / tests / bugs / modalg_1 / buc60555_3
CommitLineData
a87752f3 1puts "=============="
2puts "BUC60555"
3puts "CUT Case 3"
4puts "=============="
5cpulimit 5000
6restore [locate_data_file buc60555a.brep] part
352ffd73 7checkshape part
a87752f3 8restore [locate_data_file buc60555b.brep] trTool1
352ffd73 9checkshape trTool1
a87752f3 10
11halfspace hs1 trTool1 20000 10000 0
12bcut cut1 part hs1
352ffd73 13checkshape cut1
a87752f3 14
15set che [checkshape cut1 r]
16if { [regexp {OK} $che] != 1 } {
17 puts "Faulty : mistakes are found in checked shape by checkshape command"
18} else {
19 puts "Checking by checkshape - OK"
20}
21
22maxtolerance cut1
23
24restore [locate_data_file buc60555c.brep] trTool2
25halfspace hs2 trTool2 10000 10000 0
26bcut cut2 cut1 hs2
352ffd73 27checkshape cut2
a87752f3 28
29set che [checkshape cut2 r]
30if { [regexp {OK} $che] != 1 } {
31 puts "Faulty : mistakes are found in checked shape by checkshape command"
32} else {
33 puts "Checking by checkshape - OK"
34}
35
36maxtolerance cut2
37
38restore [locate_data_file buc60555d.brep] trTool3
39halfspace hs3 trTool3 20000 1000 0
40bcut cut3 cut2 hs3
41
42tcopy cut3 result
43
44explode cut3 e
45mkcurve cu1 cut3_1
46mkcurve cu2 cut3_2
47mkcurve cu3 cut3_3
48mkcurve cu4 cut3_4
49
50set che [checkshape cut3 r]
51if { [regexp {OK} $che] != 1 } {
52 puts "Faulty : mistakes are found in checked shape by checkshape command"
53} else {
54 puts "Checking by checkshape - OK"
55}
56
352ffd73 57checkshape cut3
a87752f3 58
59set tolerance [ maxtolerance cut3 ]
60regexp { +Face +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxFaceTolerance
61regexp { +Edge +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxEdgeTolerance
62regexp { +Vertex +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxVertexTolerance
63
0cbfb9f1 64if { $MaxFaceTolerance > 2 || $MaxEdgeTolerance > 2 || $MaxVertexTolerance > 2 } {
65 puts "Faulty : Tolerance of shape is more then 2.0"
a87752f3 66} else {
0cbfb9f1 67 puts "Tolerance of shape is less then 2.0"
a87752f3 68}
58cf74e0 69
70checkprops result -s 1.24886e+007
71checkshape result
5747059b 72checkview -display result -2d -path ${imagedir}/${test_image}.png