352ffd73 |
1 | |
2 | puts "========================" |
3 | puts " OCC534 " |
4 | puts " case 1 " |
5 | puts "========================" |
6 | puts "" |
7 | |
8 | hyperbola hyperbola 0 0 0 30 10 |
9 | extsurf es_hyperbola hyperbola 0 0 1 |
10 | offset es_hyperbola_of es_hyperbola 5 |
11 | mkface result es_hyperbola_of 0 3 0 40 |
12 | |
13 | |
14 | set tolerance [maxtolerance result] |
15 | regexp { +Face +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxFaceTolerance |
16 | regexp { +Edge +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxEdgeTolerance |
17 | regexp { +Vertex +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxVertexTolerance |
18 | |
19 | if { $MaxFaceTolerance > 1 || $MaxEdgeTolerance > 1 || $MaxVertexTolerance > 1 } { |
20 | puts "Faulty : Tolerance of shape is more then 1.0" |
21 | } else { |
22 | puts "Tolerance is OK" |
23 | } |
24 | |
58cf74e0 |
25 | checkprops result -s 11451.2 |
26 | checkshape result |
5747059b |
27 | checkview -display result -2d -path ${imagedir}/${test_image}.png |
352ffd73 |
28 | |