0027531: Modeling Algorithms - Make the algorithm Approx_SameParameter more clear...
[occt.git] / tests / bugs / modalg_2 / bug5805_38
CommitLineData
3bea4c16 1puts "============"
2puts "OCC5805"
3puts "============"
4
5#######################################################################
6# BRepOffsetAPI_MakeThickSolid behaves unstably and produces very different results.
7#######################################################################
8
9set BugNumber OCC5805
10
11#
12# v12 v11
13# *---------------------*
14# | |
15# | |
16# | |
17# | |
18# | |
19# | |
20# | |
21# | |
22# | |
23# | |
24# *---------------------*
25# v13 v14
26#
27
28set z1 5
29set z2 -5
30
31# quadrangle1
32polyline UpCover 0 0 ${z1} 6 0 ${z1} 6 6 ${z1} 0 6 ${z1} 0 0 ${z1}
33
34# quadrangle2
35polyline BottomCover 3 -2 ${z2} 8 3 ${z2} 3 8 ${z2} -2 3 ${z2} 3 -2 ${z2}
36
37set issolid 1
38set isruled 1
39if [catch { thrusections s ${issolid} ${isruled} UpCover BottomCover } catch_result] {
40 puts "Faulty ${BugNumber} : thrusections is wrong"
41
42}
43
44set distance -0.5
45catch { OFFSETSHAPE $distance {s_5} $calcul $type }
46
47
58cf74e0 48checkprops result -s 544.931
49checkshape result
3bea4c16 50
a4eba920 51checknbshapes result -vertex 16 -edge 24 -wire 12 -face 11 -shell 1 -solid 1 -compsolid 0 -compound 0 -shape 65
3bea4c16 52
53set index [lsearch [whatis s] Closed]
54if {$index == -1} {
55 puts "Faulty ${BugNumber} : s is not Closed shape"
56
57}
58
59set index [lsearch [whatis result] Closed]
60if {$index == -1} {
61 puts "Faulty ${BugNumber} : result is not Closed shape"
62
63}
64
65
5747059b 66checkview -display result -2d -path ${imagedir}/${test_image}.png