0024357: BRepBuilderAPI_Sewing returns result with too high tolerance.
[occt.git] / tests / bugs / modalg_2 / bug5805_2
1 puts "============"
2 puts "OCC5805"
3 puts "============"
4 puts ""
5 ######################################################
6 # BRepOffsetAPI_MakeThickSolid behaves unstably and produces very different results.
7 ######################################################
8
9 set BugNumber OCC5805
10
11 puts "demonstration of pipes and hollowing for GTISoft"
12 puts ""
13 puts "Scenario 2A: Hollowed elliptical cylinder - ThroughSection and MakeThickSolid"
14
15 ellipse e 10 60 0 1 0 0 5 3
16 mkedge ee e
17 wire w1 ee
18 copy w1 w2
19 ttranslate w2 -20 0 0
20
21 if { [catch { thrusections rthru2 1 1 w1 w2 } catch_result] } {
22    puts "Faulty ${BugNumber} : thrusections is wrong"
23 }
24
25 explode rthru2 f
26
27 if { [catch { offsetshape result rthru2 -0.5 rthru2_2 rthru2_3 } catch_result] } {
28    puts "Faulty ${BugNumber} : offsetshape is wrong"
29 }
30
31 if { [catch { set tolmaxres [tolmax result] } catch_result] } {
32    puts "Faulty ${BugNumber} : tolmax is wrong"
33 }
34 regexp {max tol = ([-0-9.+eE]+)} $tolmaxres full maxtolerance
35 if { [catch { expr $maxtolerance } catch_result] } {
36    puts "Faulty ${BugNumber} : maxtolerance is wrong (1)."
37 }
38 if { $maxtolerance > 1. } {
39    puts "Faulty ${BugNumber} : maxtolerance is wrong (2)."
40 }
41
42 set square 982.254
43
44 set nb_v_good 3
45 set nb_e_good 5
46 set nb_w_good 6
47 set nb_f_good 4
48 set nb_sh_good 1
49 set nb_sol_good 1
50 set nb_compsol_good 0
51 set nb_compound_good 0
52 set nb_shape_good 20
53
54 set 2dviewer 0