0026855: Draw commands to debug Boolean Operations Algorithm
[occt.git] / tests / bugs / modalg_2 / bug534_6
1
2 puts "========================"
3 puts " OCC534 "
4 puts " case 6 "
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 offset rs_parabola_of_of rs_parabola_of 5
12 mkface result rs_parabola_of_of .3 .5 .3 .5
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
25 set square 11.9915
26 set 2dviewer 0
27