Adjusting bugs group for current state of OCCT
[occt.git] / tests / bugs / modalg / bug5806
CommitLineData
61c421bf 1puts "============"
2puts "OCC5806"
3puts "============"
4puts ""
5######################################################
6# BRepOffsetAPI_MakeThickSolid fails to build a result
7######################################################
8
9set BugNumber OCC5806
10
11puts "demonstration of pipes and hollowing for GTISoft"
12puts ""
13puts "Scenario 3A: Hollowed general pipe - ThroughSection with following shell reconstruction"
14
15circle c 0 100 0 1 0 0 5
16mkedge ec c
17wire wc ec
18polyline pl 10 90 -10 10 90 10 10 110 10 10 110 -10 10 90 -10
19
20if { [catch { thrusections resthru 1 1 wc pl } catch_result] } {
21 puts "Faulty ${BugNumber} : thrusections is wrong"
22}
23
24# straighforward hollowing will fail due to problems in the algorithm
25explode resthru f
26
27if { [catch { offsetshape result resthru -0.5 resthru_6 resthru_7 } catch_result] } {
28 puts "Faulty ${BugNumber} : offsetshape is wrong"
29}
30
31if { [catch { set tolmaxres [tolmax result] } catch_result] } {
32 puts "Faulty ${BugNumber} : tolmax is wrong"
33}
34regexp {max tol = ([-0-9.+eE]+)} $tolmaxres full maxtolerance
35if { [catch { expr $maxtolerance } catch_result] } {
36 puts "Faulty ${BugNumber} : maxtolerance is wrong (1)."
37}
38if { $maxtolerance > 1. } {
39 puts "Faulty ${BugNumber} : maxtolerance is wrong (2)."
40}
41
42set square 1116.06
43
44set nb_v_good 10
45set nb_e_good 15
46set nb_w_good 7
47set nb_f_good 7
48set nb_sh_good 1
49set nb_sol_good 1
50set nb_compsol_good 0
51set nb_compound_good 0
52set nb_shape_good 41
53
54set 2dviewer 0