0023457: Slow text rendering
[occt.git] / tests / bugs / modalg / bug5805_5
1 puts "============"
2 puts "OCC5805"
3 puts "============"
4 puts ""
5 ######################################################
6 # BRepOffsetAPI_MakeThickSolid behaves unstably and produces very different results.
7 ######################################################
8
9 set BugNumber OCC5805
10
11 restore [locate_data_file OCC5805.brep] a 
12
13 decho off
14 set che_a [checkshape a]
15 decho on
16 if { [regexp {Faulty} $che_a] } {
17     puts "Faulty ${BugNumber} : checkshape is wrong for a"
18 }
19
20 explode a f
21
22 offsetparameter 1e-7 c a
23 offsetload a -1
24
25 if { [catch { offsetperform result } catch_result] } {
26    puts "Faulty ${BugNumber} : offsetshape is wrong"
27 }
28
29 if { [catch { set tolmaxres [tolmax result] } catch_result]} {
30    puts "Faulty ${BugNumber} : tolmax is wrong"
31 }
32 regexp {max tol = ([-0-9.+eE]+)} $tolmaxres full maxtolerance
33 if { [catch { expr $maxtolerance } catch_result] } {
34    puts "Faulty ${BugNumber} : maxtolerance is wrong (1)."
35 }
36 if { $maxtolerance > 1. } {
37    puts "Faulty ${BugNumber} : maxtolerance is wrong (2)."
38 }
39
40 set square 876.584
41
42 set nb_v_good 10
43 set nb_e_good 15
44 set nb_w_good 7
45 set nb_f_good 7
46 set nb_sh_good 1
47 set nb_sol_good 1
48 set nb_compsol_good 0
49 set nb_compound_good 0
50 set nb_shape_good 41
51
52 set 2dviewer 0