0029528: Visualization, TKOpenGl - allow defining sRGB textures
[occt.git] / tests / bugs / modalg_2 / bug534_5
1
2 puts "========================"
3 puts " OCC534 "
4 puts " case 5 "
5 puts "========================"
6 puts ""
7
8 parabola parabola 0 0 0 30
9 revsurf rs_parabola parabola 0 400 0 1 0 0
10 offset rs_parabola_of rs_parabola 10
11 mkface result rs_parabola_of .3 .5 .3 .5
12
13 set tolerance [maxtolerance result]
14 regexp { +Face +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxFaceTolerance
15 regexp { +Edge +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxEdgeTolerance
16 regexp { +Vertex +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxVertexTolerance
17
18 if { $MaxFaceTolerance > 1 || $MaxEdgeTolerance > 1 || $MaxVertexTolerance > 1 } {
19     puts "Faulty : Tolerance of shape is more then 1.0"
20 } else {
21     puts "Tolerance is OK"
22 }
23
24 checkprops result -s 13.3227 
25 checkshape result
26 checkview -display result -2d -path ${imagedir}/${test_image}.png