Adding of testing cases from subgroups 937 940 and 941 of CHL group
[occt.git] / tests / bugs / modalg_3 / bug5805_6
CommitLineData
61c421bf 1puts "============"
2puts "OCC5805"
3puts "============"
4puts ""
5######################################################
6# BRepOffsetAPI_MakeThickSolid behaves unstably and produces very different results.
7######################################################
8
9set BugNumber OCC5805
10
11restore [locate_data_file OCC5805.brep] a
12
13decho off
14set che_a [checkshape a]
15decho on
16if { [regexp {Faulty} $che_a] } {
17 puts "Faulty ${BugNumber} : checkshape is wrong for a"
18}
19
20if { [catch { offsetshape result a -1 } catch_result] } {
21 puts "Faulty ${BugNumber} : offsetshape is wrong"
22}
23
24if { [catch { set tolmaxres [tolmax result] } catch_result] } {
25 puts "Faulty ${BugNumber} : tolmax is wrong"
26}
27regexp {max tol = ([-0-9.+eE]+)} $tolmaxres full maxtolerance
28if { [catch { expr $maxtolerance } catch_result] } {
29 puts "Faulty ${BugNumber} : maxtolerance is wrong (1)."
30}
31if { $maxtolerance > 1. } {
32 puts "Faulty ${BugNumber} : maxtolerance is wrong (2)"
33}
34
35set square 876.584
36
37set nb_v_good 10
38set nb_e_good 15
39set nb_w_good 7
40set nb_f_good 7
41set nb_sh_good 1
42set nb_sol_good 1
43set nb_compsol_good 0
44set nb_compound_good 0
45set nb_shape_good 41
46
47set 2dviewer 0