Correction of testing case for issue 24374
[occt.git] / tests / bugs / modalg_2 / bug5805_42
CommitLineData
ab87e6fc 1puts "TODO ?OCC23748 ALL: ERROR. offsetperform operation not done."
2puts "TODO ?OCC23748 ALL: Faulty OCC5805 : result is not Closed shape"
3puts "TODO ?OCC23748 ALL: Tcl Exception: result is not a topological shape!!!"
4puts "TODO ?OCC23748 ALL: Faulty shapes in variables faulty_1 to fauly_"
5puts "TODO ?OCC23748 ALL: Error : The square of result shape is"
6puts "TODO ?OCC23748 ALL: Error : Result shape is WRONG"
7puts "TODO ?OCC23748 ALL: Faulty shapes in variables faulty_1 to faulty_"
8puts "TODO ?OCC23748 ALL: TEST INCOMPLETE"
9
3bea4c16 10puts "============"
11puts "OCC5805"
12puts "============"
13
14#######################################################################
15# BRepOffsetAPI_MakeThickSolid behaves unstably and produces very different results.
16#######################################################################
17
18set BugNumber OCC5805
19
20set z1 5
21set z2 -5
22
23# beziercurve1
24beziercurve bc1 5 5 5 ${z1} 5 -5 ${z1} -5 -5 ${z1} -5 5 ${z1} 5 5 ${z1}
25mkedge e1 bc1
26wire UpCover e1
27
28# beziercurve2
29beziercurve bc2 5 4 4 ${z2} 4 -4 ${z2} -4 -4 ${z2} -4 4 ${z2} 4 4 ${z2}
30mkedge e2 bc2
31wire BottomCover e2
32
33set issolid 1
34set isruled 1
35if [catch { thrusections s ${issolid} ${isruled} UpCover BottomCover } catch_result] {
36 puts "Faulty ${BugNumber} : thrusections is wrong"
37
38}
39
40set distance -0.001
41catch { OFFSETSHAPE $distance {s_2} $calcul $type }
42# Bad result
43
44
45set square 495.635
46
47set nb_v_good 2
48set nb_e_good 3
49set nb_w_good 3
50set nb_f_good 3
51set nb_sh_good 1
52set nb_sol_good 1
53set nb_compsol_good 0
54set nb_compound_good 0
55set nb_shape_good 13
56
57
58set index [lsearch [whatis s] Closed]
59if {$index == -1} {
60 puts "Faulty ${BugNumber} : s is not Closed shape"
61
62}
63
64set index [lsearch [whatis result] Closed]
65if {$index == -1} {
66 puts "Faulty ${BugNumber} : result is not Closed shape"
67
68}
69
70
71set 2dviewer 0