0026855: Draw commands to debug Boolean Operations Algorithm
[occt.git] / tests / bugs / modalg_2 / bug5805_18
CommitLineData
c1e0171c 1puts "TODO OCC25925 ALL: ERROR. offsetperform operation not done."
2puts "TODO OCC25925 ALL: Faulty OCC5805 : result is not Closed shape"
a4eba920 3puts "TODO OCC25925 ALL: Tcl Exception: Error : command \\\"nbshapes result\\\" gives an empty result"
c1e0171c 4puts "TODO OCC25925 ALL: TEST INCOMPLETE"
3bea4c16 5
6puts "============"
7puts "OCC5805"
8puts "============"
9
10#######################################################################
11# BRepOffsetAPI_MakeThickSolid behaves unstably and produces very different results.
12#######################################################################
13
14set BugNumber OCC5805
15
16set z1 5
17set z2 -5
18
19# beziercurve1
20beziercurve bc1 5 5 5 ${z1} 5 -5 ${z1} -5 -5 ${z1} -5 5 ${z1} 5 5 ${z1}
21mkedge e1 bc1
22wire UpCover e1
23
24# beziercurve2
25copy e1 e2
26ttranslate e2 0 0 ${z2}
27wire BottomCover e2
28
29set issolid 1
30set isruled 1
31if [catch { thrusections s ${issolid} ${isruled} UpCover BottomCover } catch_result] {
32 puts "Faulty ${BugNumber} : thrusections is wrong"
33
34}
35
36set distance -0.001
37catch { OFFSETSHAPE $distance {s_2} $calcul $type }
38# Bad result
39
3bea4c16 40set index [lsearch [whatis s] Closed]
41if {$index == -1} {
42 puts "Faulty ${BugNumber} : s is not Closed shape"
43
44}
45
46set index [lsearch [whatis result] Closed]
47if {$index == -1} {
48 puts "Faulty ${BugNumber} : result is not Closed shape"
49
50}
51
a4eba920 52checknbshapes result -vertex 2 -edge 3 -wire 3 -face 3 -shell 1 -solid 1 -compsolid 0 -compound 0 -shape 13
3bea4c16 53
a4eba920 54set square 495.635
3bea4c16 55set 2dviewer 0