0023457: Slow text rendering
[occt.git] / tests / bugs / modalg / bug5805_20
CommitLineData
3bea4c16 1puts "TODO OCC11111 ALL: Error : Result shape is WRONG"
2puts "TODO OCC11111 ALL: Error : The square of result shape is"
3
4puts "============"
5puts "OCC5805"
6puts "============"
7
8#######################################################################
9# BRepOffsetAPI_MakeThickSolid behaves unstably and produces very different results.
10#######################################################################
11
12set BugNumber OCC5805
13
14set z1 5
15set z2 -5
16
17# beziercurve1
18beziercurve bc1 5 5 5 ${z1} 5 -5 ${z1} -5 -5 ${z1} -5 5 ${z1} 5 5 ${z1}
19mkedge e1 bc1
20wire UpCover e1
21
22# beziercurve2
23copy e1 e2
24ttranslate e2 0 0 ${z2}
25wire BottomCover e2
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.001
35catch { OFFSETSHAPE $distance {s_2 s_3} $calcul $type }
36# Bad result
37
38
39set square 495.635
40
41set nb_v_good 2
42set nb_e_good 3
43set nb_w_good 3
44set nb_f_good 3
45set nb_sh_good 1
46set nb_sol_good 1
47set nb_compsol_good 0
48set nb_compound_good 0
49set nb_shape_good 13
50
51
52set index [lsearch [whatis s] Closed]
53if {$index == -1} {
54 puts "Faulty ${BugNumber} : s is not Closed shape"
55
56}
57
58set index [lsearch [whatis result] Closed]
59if {$index == -1} {
60 puts "Faulty ${BugNumber} : result is not Closed shape"
61
62}
63
64
65set 2dviewer 0