0022240: Bad triangulation of transformed shapes
[occt.git] / tests / bugs / modalg_2 / bug5805_3
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 restore [locate_data_file OCC5805.brep] a 
12
13 decho off
14 set che_a [checkshape a]
15 decho on
16 if { [regexp {Faulty} $che_a] } {
17     puts "Faulty ${BugNumber} : checkshape is wrong for a"
18 }
19
20 explode a f
21
22 if { [catch { offsetshape result a -1 a_6 } catch_result] } {
23    puts "Faulty ${BugNumber} : offsetshape is wrong"
24 }
25
26 if { [catch { set tolmaxres [tolmax result] } catch_result] } {
27    puts "Faulty ${BugNumber} : tolmax is wrong"
28 }
29
30 regexp {max tol = ([-0-9.+eE]+)} $tolmaxres full maxtolerance
31 if { [catch { expr $maxtolerance } catch_result] } {
32    puts "Faulty ${BugNumber} : maxtolerance is wrong (1)."
33 }
34 if { $maxtolerance > 1. } {
35    puts "Faulty ${BugNumber} : maxtolerance is wrong (2)."
36 }
37
38 set square 1185.03
39
40 set nb_v_good 10
41 set nb_e_good 15
42 set nb_w_good 7
43 set nb_f_good 7
44 set nb_sh_good 1
45 set nb_sol_good 1
46 set nb_compsol_good 0
47 set nb_compound_good 0
48 set nb_shape_good 41
49
50 set 2dviewer 0