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