0026106: BRepMesh - revision of data model
[occt.git] / tests / bugs / modalg_2 / bug5805_17
1 puts "TODO OCC25925 ALL: Faulty OCC5805 : result is not Closed shape"
2 puts "TODO OCC25925 ALL: Error: The command cannot be built"
3 puts "TODO OCC25925 ALL: TEST INCOMPLETE"
4 puts "TODO OCC25925 ALL: Tcl Exception: Error : command \\\"nbshapes result\\\" gives an empty result"
5
6 puts "============"
7 puts "OCC5805"
8 puts "============"
9
10 #######################################################################
11 # BRepOffsetAPI_MakeThickSolid behaves unstably and produces very different results.
12 #######################################################################
13
14 set BugNumber OCC5805
15
16 set z1 5
17 set z2 -5
18
19 # beziercurve1
20 beziercurve bc1 5 5 5 ${z1} 5 -5 ${z1} -5 -5 ${z1} -5 5 ${z1} 5 5 ${z1}
21 mkedge e1 bc1
22 wire UpCover e1
23
24 # beziercurve2
25 copy e1 e2
26 ttranslate e2 0 0 ${z2}
27 wire BottomCover e2
28
29 set issolid 1
30 set isruled 1
31 if [catch { thrusections s ${issolid} ${isruled} UpCover BottomCover } catch_result] {
32    puts "Faulty ${BugNumber} : thrusections is wrong"
33    
34 }
35
36 set distance -0.001
37 catch { OFFSETSHAPE $distance {} $calcul $type }
38 # Null result
39
40 checkprops result -s 495.635 
41
42 set index [lsearch [whatis s] Closed]
43 if {$index == -1} {
44   puts "Faulty ${BugNumber} : s is not Closed shape"
45   
46 }
47
48 set index [lsearch [whatis result] Closed]
49 if {$index == -1} {
50   puts "Faulty ${BugNumber} : result is not Closed shape"
51   
52 }
53
54 checknbshapes result -vertex 2 -edge 3 -wire 3 -face 3 -shell 1 -solid 1 -compsolid 0 -compound 0 -shape 13
55
56 checkview -display result -2d -path ${imagedir}/${test_image}.png