0031735: Modeling Algorithms - BRepOffset_MakeOffset works slowly and produces wrong...
[occt.git] / tests / bugs / modalg_2 / bug5805_10
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# ellipse1
12ellipse ell 10 0 0 1 0 0 5 3
13mkedge ee1 ell
14wire UpCover ee1
15
16# ellipse2
17copy ee1 ee2
18ttranslate ee2 -20 0 0
19wire BottomCover ee2
20
21set issolid 1
22set isruled 1
23if [catch { thrusections s ${issolid} ${isruled} UpCover BottomCover } catch_result] {
24 puts "Faulty ${BugNumber} : thrusections is wrong"
25
26}
27
28set distance -0.5
29catch { OFFSETSHAPE $distance {s_2} $calcul $type }
30
31
58cf74e0 32checkprops result -s 1065.08
33checkshape result
3bea4c16 34
99c9a820 35checknbshapes result -t -wire 6 -face 5 -shell 1 -solid 1
3bea4c16 36
37set index [lsearch [whatis s] Closed]
38if {$index == -1} {
39 puts "Faulty ${BugNumber} : s is not Closed shape"
40
41}
42
43set index [lsearch [whatis result] Closed]
44if {$index == -1} {
45 puts "Faulty ${BugNumber} : result is not Closed shape"
46
47}
48
49
5747059b 50checkview -display result -2d -path ${imagedir}/${test_image}.png