0025138: SIGSEGV when sweeping along helix
[occt.git] / tests / bugs / modalg_2 / bug5805_42
CommitLineData
4e14c88f 1puts "TODO OCC25925 ALL: ERROR. offsetperform operation not done."
58cf74e0 2puts "TODO OCC25925 ALL: Error: The command cannot be built"
3puts "TODO OCC25925 ALL: Tcl Exception: result is not a topological shape"
4e14c88f 4puts "TODO OCC25925 ALL: TEST INCOMPLETE"
ab87e6fc 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
25beziercurve bc2 5 4 4 ${z2} 4 -4 ${z2} -4 -4 ${z2} -4 4 ${z2} 4 4 ${z2}
26mkedge e2 bc2
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
40
58cf74e0 41checkprops result -s 495.635
42checkshape result
3bea4c16 43
a4eba920 44checknbshapes result -vertex 2 -edge 3 -wire 3 -face 3 -shell 1 -solid 1 -compsolid 0 -compound 0 -shape 13
3bea4c16 45
46set index [lsearch [whatis s] Closed]
47if {$index == -1} {
48 puts "Faulty ${BugNumber} : s is not Closed shape"
49
50}
51
52set index [lsearch [whatis result] Closed]
53if {$index == -1} {
54 puts "Faulty ${BugNumber} : result is not Closed shape"
55
56}
57
58
5747059b 59checkview -display result -2d -path ${imagedir}/${test_image}.png