0026235: Command tolmax works wrong
[occt.git] / tests / bugs / modalg_4 / 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
fb60057d 31checkmaxtol result -min_tol 1.
61c421bf 32
33set square 1116.06
34
35set nb_v_good 10
36set nb_e_good 15
37set nb_w_good 7
38set nb_f_good 7
39set nb_sh_good 1
40set nb_sol_good 1
41set nb_compsol_good 0
42set nb_compound_good 0
43set nb_shape_good 41
44
45set 2dviewer 0