0024357: BRepBuilderAPI_Sewing returns result with too high tolerance.
[occt.git] / tests / bugs / modalg_2 / bug5805_48
CommitLineData
3bea4c16 1
2puts "============"
3puts "OCC5805"
4puts "============"
5#######################################################################
6# BRepOffsetAPI_MakeThickSolid behaves unstably and produces very different results.
7#######################################################################
8cpulimit 8000
9set BugNumber OCC5805
10
11# pbsplinecurve1
12pbsplinecurve 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
13mkedge e1 pbc1
14wire UpCover e1
15
16# pbsplinecurve1
17copy e1 e2
18ttranslate e2 0 0 20
19tscale e2 0 0 0 2
20wire BottomCover e2
21
22set issolid 1
23set isruled 1
24if [catch { thrusections s ${issolid} ${isruled} UpCover BottomCover } catch_result] {
25 puts "Faulty ${BugNumber} : thrusections is wrong"
26
27}
28
29set distance -0.1
30catch { OFFSETSHAPE $distance {s_3 s_2} $calcul $type }
31
32
59495dbe 33set square 1471.48
3bea4c16 34
35set nb_v_good 4
36set nb_e_good 6
37set nb_w_good 6
38set nb_f_good 4
39set nb_sh_good 1
40set nb_sol_good 1
41set nb_compsol_good 0
42set nb_compound_good 0
43set nb_shape_good 22
44
45
46set index [lsearch [whatis s] Closed]
47if {$index == -1} {
48 puts "Faulty ${BugNumber} : s is not Closed shape"
49
50}
51
52set index [lsearch [whatis result] Closed]
53if {$index == -1} {
54 puts "Faulty ${BugNumber} : result is not Closed shape"
55
56}
57
58
59set 2dviewer 0