0023457: Slow text rendering
[occt.git] / tests / bugs / modalg / bug5805_1
CommitLineData
61c421bf 1puts "============"
2puts "OCC5805"
3puts "============"
4puts ""
5######################################################
6# BRepOffsetAPI_MakeThickSolid behaves unstably and produces very different results.
7######################################################
8
9set BugNumber OCC5805
10
11puts "demonstration of pipes and hollowing for GTISoft"
12puts ""
13puts "Scenario 2A: Hollowed elliptical cylinder - ThroughSection and MakeThickSolid (work-around: ellipse is split into 2)"
14
15
16ellipse e 10 60 0 1 0 0 5 3
17trim e1 e 0 pi
18trim e2 e pi 2*pi
19mkedge ee1 e1
20mkedge ee2 e2
21wire w1 ee1 ee2
22copy w1 w2
23ttranslate w2 -20 0 0
24
25if { [catch { thrusections rthru2 1 1 w1 w2 } catch_result] } {
26 puts "Faulty ${BugNumber} : thrusections is wrong"
27}
28
29explode rthru2 f
30
31if { [catch { offsetshape result rthru2 -0.5 rthru2_3 rthru2_4 } catch_result] } {
32 puts "Faulty ${BugNumber} : offsetshape is wrong"
33}
34
35if { [catch { set tolmaxres [tolmax result] } catch_result] } {
36 puts "Faulty ${BugNumber} : tolmax is wrong"
37}
38
39regexp {max tol = ([-0-9.+eE]+)} $tolmaxres full maxtolerance
40if { [catch { expr $maxtolerance } result] } {
41 puts "Faulty ${BugNumber} : maxtolerance is wrong (1)."
42}
43if { $maxtolerance > 1. } {
44 puts "Faulty ${BugNumber} : maxtolerance is wrong (2)."
45}
46
47set square 981.941
48
49set nb_v_good 6
50set nb_e_good 10
51set nb_w_good 8
52set nb_f_good 6
53set nb_sh_good 1
54set nb_sol_good 1
55set nb_compsol_good 0
56set nb_compound_good 0
57set nb_shape_good 32
58
59set 2dviewer 0