0024357: BRepBuilderAPI_Sewing returns result with too high tolerance.
[occt.git] / tests / bugs / modalg_2 / bug5805_5
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
20explode a f
21
22offsetparameter 1e-7 c a
23offsetload a -1
24
25if { [catch { offsetperform result } catch_result] } {
26 puts "Faulty ${BugNumber} : offsetshape is wrong"
27}
28
29if { [catch { set tolmaxres [tolmax result] } catch_result]} {
30 puts "Faulty ${BugNumber} : tolmax is wrong"
31}
32regexp {max tol = ([-0-9.+eE]+)} $tolmaxres full maxtolerance
33if { [catch { expr $maxtolerance } catch_result] } {
34 puts "Faulty ${BugNumber} : maxtolerance is wrong (1)."
35}
36if { $maxtolerance > 1. } {
37 puts "Faulty ${BugNumber} : maxtolerance is wrong (2)."
38}
39
40set square 876.584
41
42set nb_v_good 10
43set nb_e_good 15
44set nb_w_good 7
45set nb_f_good 7
46set nb_sh_good 1
47set nb_sol_good 1
48set nb_compsol_good 0
49set nb_compound_good 0
50set nb_shape_good 41
51
52set 2dviewer 0