0028903: BRepOffset_MakeOffset produces invalid shape (thickshell) in Intersection...
[occt.git] / tests / bugs / modalg_2 / bug5805_41
1 puts "TODO OCC23068 ALL: Error :  is WRONG because number of"
2 puts "TODO OCC23068 ALL: Error : The area of result shape is"
3 puts "TODO OCC23068 ALL: Faulty shapes in variables faulty_1 to faulty_"
4
5 puts "============"
6 puts "OCC5805"
7 puts "============"
8
9 #######################################################################
10 # BRepOffsetAPI_MakeThickSolid behaves unstably and produces very different results.
11 #######################################################################
12
13 set BugNumber OCC5805
14
15 set z1 5
16 set z2 -5
17
18 # beziercurve1
19 beziercurve bc1 5 5 5 ${z1} 5 -5 ${z1} -5 -5 ${z1} -5 5 ${z1} 5 5 ${z1}
20 mkedge e1 bc1
21 wire UpCover e1
22
23 # beziercurve2
24 beziercurve bc2 5 4 4 ${z2} 4 -4 ${z2} -4 -4 ${z2} -4 4 ${z2} 4 4 ${z2}
25 mkedge e2 bc2
26 wire BottomCover e2
27
28 set issolid 1
29 set isruled 1
30 if [catch { thrusections s ${issolid} ${isruled} UpCover BottomCover } catch_result] {
31    puts "Faulty ${BugNumber} : thrusections is wrong"
32    
33 }
34
35 set distance -0.001
36 catch { OFFSETSHAPE $distance {} $calcul $type }
37 # Null result
38
39
40 checkprops result -s 495.635 
41 checkshape result
42
43 checknbshapes result -vertex 2 -edge 3 -wire 3 -face 3 -shell 1 -solid 1 -compsolid 0 -compound 0 -shape 13
44
45 set index [lsearch [whatis s] Closed]
46 if {$index == -1} {
47   puts "Faulty ${BugNumber} : s is not Closed shape"
48   
49 }
50
51 set index [lsearch [whatis result] Closed]
52 if {$index == -1} {
53   puts "Faulty ${BugNumber} : result is not Closed shape"
54   
55 }
56
57
58 checkview -display result -2d -path ${imagedir}/${test_image}.png