0023457: Slow text rendering
[occt.git] / tests / bugs / modalg / bug5805_41
CommitLineData
3bea4c16 1puts "TODO OCC11111 ALL: Error : Result shape is WRONG"
2puts "TODO OCC11111 ALL: Error : The square of result shape is"
3bea4c16 3puts "TODO ?OCC11111 ALL: Faulty OCC5805 : result is not Closed shape"
4puts "TODO ?OCC11111 ALL: Error : The command is not valid"
5puts "============"
6puts "OCC5805"
7puts "============"
8
9#######################################################################
10# BRepOffsetAPI_MakeThickSolid behaves unstably and produces very different results.
11#######################################################################
12
13set BugNumber OCC5805
14
15set z1 5
16set z2 -5
17
18# beziercurve1
19beziercurve bc1 5 5 5 ${z1} 5 -5 ${z1} -5 -5 ${z1} -5 5 ${z1} 5 5 ${z1}
20mkedge e1 bc1
21wire UpCover e1
22
23# beziercurve2
24beziercurve bc2 5 4 4 ${z2} 4 -4 ${z2} -4 -4 ${z2} -4 4 ${z2} 4 4 ${z2}
25mkedge e2 bc2
26wire BottomCover e2
27
28set issolid 1
29set isruled 1
30if [catch { thrusections s ${issolid} ${isruled} UpCover BottomCover } catch_result] {
31 puts "Faulty ${BugNumber} : thrusections is wrong"
32
33}
34
35set distance -0.001
36catch { OFFSETSHAPE $distance {} $calcul $type }
37# Null result
38
39
40set square 495.635
41
42set nb_v_good 2
43set nb_e_good 3
44set nb_w_good 3
45set nb_f_good 3
46set nb_sh_good 1
47set nb_sol_good 1
48set nb_compsol_good 0
49set nb_compound_good 0
50set nb_shape_good 13
51
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
66set 2dviewer 0