Adding test cases for chl grid
[occt.git] / tests / bugs / modalg / buc60555_2
1 puts "============="
2 puts "BUC60555"
3 puts "CUT Case2"
4 puts "============="
5 cpulimit 1400
6 restore [locate_data_file buc60555a.brep] part 
7 checkshape part
8 restore [locate_data_file buc60555b.brep] trTool1
9 checkshape trTool1
10
11 halfspace hs1 trTool1 20000 10000 0
12 bcut cut1 part hs1
13 checkshape cut1
14
15 set che [checkshape cut1 r]
16 if { [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
22 puts [maxtolerance cut1]
23
24 restore [locate_data_file buc60555c.brep] trTool2
25 halfspace hs2 trTool2 10000 10000 0
26 bcut cut2 cut1 hs2
27
28 tcopy cut2 result
29
30 explode cut2 e
31 mkcurve cu1 cut2_1
32 mkcurve cu2 cut2_2
33 mkcurve cu3 cut2_3
34 mkcurve cu4 cut2_4
35
36 set che [checkshape cut2 r]
37 if { [regexp {OK} $che] != 1 } {
38     puts "Faulty : mistakes are found in checked shape by checkshape command"
39 } else {
40     puts "Checking by checkshape - OK"
41 }
42
43 checkshape cut2
44 set tolerance [ maxtolerance cut2 ]
45 regexp { +Face +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxFaceTolerance
46 regexp { +Edge +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxEdgeTolerance
47 regexp { +Vertex +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxVertexTolerance
48 if { $MaxFaceTolerance > 1 || $MaxEdgeTolerance > 1 || $MaxVertexTolerance > 1 } {
49     puts "Faulty : Tolerance of shape is more then 1.0"
50 } else {
51     puts "Tolerance of shape is less then 1.0"
52 }
53 set square 4.52817e+07
54 set 2dviewer 0