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