6 restore [locate_data_file buc60555a.brep] part
8 restore [locate_data_file buc60555b.brep] trTool1
9 puts [checkshape trTool1]
11 halfspace hs1 trTool1 20000 10000 0
13 puts [checkshape cut1]
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
27 puts [checkshape cut2]
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"
57 puts [checkshape cut3 ]
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 > 1 || $MaxEdgeTolerance > 1 || $MaxVertexTolerance > 1 } {
65 puts "Faulty : Tolerance of shape is more then 1.0"
67 puts "Tolerance of shape is less then 1.0"
69 set square 2.22138e+07