0027531: Modeling Algorithms - Make the algorithm Approx_SameParameter more clear...
[occt.git] / tests / bugs / modalg_2 / bug5805_29
CommitLineData
3bea4c16 1puts "============"
2puts "OCC5805"
3puts "OCC7582"
4puts "============"
5
6#######################################################################
7# BRepOffsetAPI_MakeThickSolid behaves unstably and produces very different results.
8#######################################################################
9# Bad result of offset operation
10#######################################################################
11
12set BugNumber OCC5805
13
14set z1 10
15set z2 -10
16
17# circle1
18circle c1 0 0 ${z1} 5
19mkedge ec1 c1
20wire UpCover ec1
21
22# circle2
23circle c2 0 0 ${z2} 30
24mkedge ec2 c2
25wire BottomCover ec2
26
27set issolid 1
28set isruled 1
29if [catch { thrusections s ${issolid} ${isruled} UpCover BottomCover } catch_result] {
30 puts "Faulty ${BugNumber} : thrusections is wrong"
31
32}
33
34set distance -0.5
35catch { OFFSETSHAPE $distance {} $calcul $type }
36
37
58cf74e0 38checkprops result -s 5829.59
39checkshape result
3bea4c16 40
a4eba920 41checknbshapes result -vertex 2 -edge 3 -wire 3 -face 3 -shell 1 -solid 1 -compsolid 0 -compound 0 -shape 13
3bea4c16 42
43set index [lsearch [whatis s] Closed]
44if {$index == -1} {
45 puts "Faulty ${BugNumber} : s is not Closed shape"
46
47}
48
49set index [lsearch [whatis result] Closed]
50if {$index == -1} {
51 puts "Faulty ${BugNumber} : result is not Closed shape"
52
53}
54
5747059b 55checkview -display result -2d -path ${imagedir}/${test_image}.png