6 restore [locate_data_file buc60555a.brep] part
8 restore [locate_data_file buc60555b.brep] trTool1
11 halfspace hs1 trTool1 20000 10000 0
15 set che [checkshape cut1 r]
16 if { [regexp {OK} $che] != 1 } {
17 puts "Faulty : mistakes are found in checked shape by checkshape command"
19 puts "Checking by checkshape - OK"
24 restore [locate_data_file buc60555c.brep] trTool2
25 halfspace hs2 trTool2 10000 10000 0
29 set che [checkshape cut2 r]
30 if { [regexp {OK} $che] != 1 } {
31 puts "Faulty : mistakes are found in checked shape by checkshape command"
33 puts "Checking by checkshape - OK"
38 restore [locate_data_file buc60555d.brep] trTool3
39 halfspace hs3 trTool3 20000 1000 0
50 set che [checkshape cut3 r]
51 if { [regexp {OK} $che] != 1 } {
52 puts "Faulty : mistakes are found in checked shape by checkshape command"
54 puts "Checking by checkshape - OK"
59 set tolerance [ maxtolerance cut3 ]
60 regexp { +Face +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxFaceTolerance
61 regexp { +Edge +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxEdgeTolerance
62 regexp { +Vertex +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxVertexTolerance
64 if { $MaxFaceTolerance > 2 || $MaxEdgeTolerance > 2 || $MaxVertexTolerance > 2 } {
65 puts "Faulty : Tolerance of shape is more then 2.0"
67 puts "Tolerance of shape is less then 2.0"
69 set square 1.74934e+007