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