0030679: Attached model hangs most of OCCT common functionality
[occt.git] / tests / bugs / modalg_2 / bug5805_17
CommitLineData
c1e0171c 1puts "TODO OCC25925 ALL: Faulty OCC5805 : result is not Closed shape"
58cf74e0 2puts "TODO OCC25925 ALL: Error: The command cannot be built"
c1e0171c 3puts "TODO OCC25925 ALL: TEST INCOMPLETE"
a4eba920 4puts "TODO OCC25925 ALL: Tcl Exception: Error : command \\\"nbshapes result\\\" gives an empty result"
28746337 5
3bea4c16 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 {} $calcul $type }
38# Null result
39
58cf74e0 40checkprops result -s 495.635
41
3bea4c16 42set index [lsearch [whatis s] Closed]
43if {$index == -1} {
44 puts "Faulty ${BugNumber} : s is not Closed shape"
45
46}
47
48set index [lsearch [whatis result] Closed]
49if {$index == -1} {
50 puts "Faulty ${BugNumber} : result is not Closed shape"
51
52}
53
a4eba920 54checknbshapes result -vertex 2 -edge 3 -wire 3 -face 3 -shell 1 -solid 1 -compsolid 0 -compound 0 -shape 13
3bea4c16 55
5747059b 56checkview -display result -2d -path ${imagedir}/${test_image}.png