Modified TODOs in test cases bugs modalg_2 bug5805_* with number of issue #25925.
[occt.git] / tests / bugs / modalg_2 / bug5805_4
CommitLineData
c1e0171c 1puts "TODO OCC25925 ALL: ERROR. offsetperform operation not done."
2puts "TODO OCC25925 ALL: Faulty OCC5805 : offsetshape is wrong"
3puts "TODO OCC25925 ALL: Faulty OCC5805 : tolmax is wrong"
4puts "TODO OCC25925 ALL: Tcl Exception: can't read"
5puts "TODO OCC25925 ALL: TEST INCOMPLETE"
ab87e6fc 6
61c421bf 7puts "============"
8puts "OCC5805"
9puts "============"
10puts ""
11######################################################
12# BRepOffsetAPI_MakeThickSolid behaves unstably and produces very different results.
13######################################################
14
15set BugNumber OCC5805
16
17restore [locate_data_file OCC5805.brep] a
18
19decho off
20set che_a [checkshape a]
21decho on
22
23if { [regexp {Faulty} $che_a] } {
24 puts "Faulty ${BugNumber} : checkshape is wrong for a"
25}
26
27explode a f
28
29offsetparameter 1e-7 c a
30offsetload a -1 a_6
31
32if { [catch { offsetperform result } catch_result] } {
33 puts "Faulty ${BugNumber} : offsetshape is wrong"
34}
35
36if { [catch { set tolmaxres [tolmax result] } catch_result] } {
37 puts "Faulty ${BugNumber} : tolmax is wrong"
38}
39regexp {max tol = ([-0-9.+eE]+)} $tolmaxres full maxtolerance
40if { [catch { expr $maxtolerance } catch_result] } {
41 puts "Faulty ${BugNumber} : maxtolerance is wrong (1)."
42}
43if { $maxtolerance > 1. } {
44 puts "Faulty ${BugNumber} : maxtolerance is wrong (2)."
45}
46
47set square 1185.03
48
49set nb_v_good 10
50set nb_e_good 15
51set nb_w_good 7
52set nb_f_good 7
53set nb_sh_good 1
54set nb_sol_good 1
55set nb_compsol_good 0
56set nb_compound_good 0
57set nb_shape_good 41
58
59set 2dviewer 0