Adding of testing cases from subgroups 937 940 and 941 of CHL group
[occt.git] / tests / bugs / modalg_2 / bug5805_23
CommitLineData
3bea4c16 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
13# pbsplinecurve1
14pbsplinecurve pbc1 3 9 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 -1 0 0 1 -2 2 0 1 0 1 0 1 2 2 0 1 1 0 0 1 2 -2 0 1 0 -1 0 1 -2 -2 0 1
15mkedge e1 pbc1
16wire UpCover e1
17
18# pbsplinecurve1
19copy e1 e2
20ttranslate e2 0 0 20
21wire BottomCover e2
22
23set issolid 1
24set isruled 1
25if [catch { thrusections s ${issolid} ${isruled} UpCover BottomCover } catch_result] {
26 puts "Faulty ${BugNumber} : thrusections is wrong"
27
28}
29
30set distance -0.1
31catch { OFFSETSHAPE $distance {s_2} $calcul $type }
32
33
34set square 484.846
35
36set nb_v_good 3
37set nb_e_good 5
38set nb_w_good 6
39set nb_f_good 5
40set nb_sh_good 1
41set nb_sol_good 1
42set nb_compsol_good 0
43set nb_compound_good 0
44set nb_shape_good 21
45
46
47set index [lsearch [whatis s] Closed]
48if {$index == -1} {
49 puts "Faulty ${BugNumber} : s is not Closed shape"
50
51}
52
53set index [lsearch [whatis result] Closed]
54if {$index == -1} {
55 puts "Faulty ${BugNumber} : result is not Closed shape"
56
57}
58
59
60set 2dviewer 0