Adding of testing cases from subgroups 937 940 and 941 of CHL group
[occt.git] / tests / bugs / modalg_2 / bug534_5
CommitLineData
352ffd73 1
2puts "========================"
3puts " OCC534 "
4puts " case 5 "
5puts "========================"
6puts ""
7
8parabola parabola 0 0 0 30
9revsurf rs_parabola parabola 0 400 0 1 0 0
10offset rs_parabola_of rs_parabola 10
11mkface result rs_parabola_of .3 .5 .3 .5
12
13set tolerance [maxtolerance result]
14regexp { +Face +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxFaceTolerance
15regexp { +Edge +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxEdgeTolerance
16regexp { +Vertex +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxVertexTolerance
17
18if { $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
24set square 13.3227
25set 2dviewer 0