Adding test cases from chl grid
[occt.git] / tests / bugs / modalg / bug5805_44
... / ...
CommitLineData
1puts "TODO OCC11111 ALL: Error : The square of result shape is"
2
3puts "============"
4puts "OCC5805"
5puts "============"
6
7#######################################################################
8# BRepOffsetAPI_MakeThickSolid behaves unstably and produces very different results.
9#######################################################################
10
11set BugNumber OCC5805
12
13set z1 5
14set z2 -5
15
16# beziercurve1
17beziercurve bc1 5 5 5 ${z1} 5 -5 ${z1} -5 -5 ${z1} -5 5 ${z1} 5 5 ${z1}
18mkedge e1 bc1
19wire UpCover e1
20
21# beziercurve2
22beziercurve bc2 5 4 4 ${z2} 4 -4 ${z2} -4 -4 ${z2} -4 4 ${z2} 4 4 ${z2}
23mkedge e2 bc2
24wire BottomCover e2
25
26set issolid 1
27set isruled 1
28if [catch { thrusections s ${issolid} ${isruled} UpCover BottomCover } catch_result] {
29 puts "Faulty ${BugNumber} : thrusections is wrong"
30
31}
32
33set distance -0.001
34catch { OFFSETSHAPE $distance {s_2 s_3} $calcul $type }
35# Bad result
36
37
38set square 495.635
39
40set nb_v_good 2
41set nb_e_good 3
42set nb_w_good 3
43set nb_f_good 3
44set nb_sh_good 1
45set nb_sol_good 1
46set nb_compsol_good 0
47set nb_compound_good 0
48set nb_shape_good 13
49
50
51set index [lsearch [whatis s] Closed]
52if {$index == -1} {
53 puts "Faulty ${BugNumber} : s is not Closed shape"
54
55}
56
57set index [lsearch [whatis result] Closed]
58if {$index == -1} {
59 puts "Faulty ${BugNumber} : result is not Closed shape"
60
61}
62
63
64set 2dviewer 0