0023457: Slow text rendering
[occt.git] / tests / bugs / modalg / bug6334
CommitLineData
61c421bf 1puts "TODO OCC11111 ALL: Error : Result shape is WRONG"
2
3puts "============"
4puts "OCC6334"
5puts "============"
6puts ""
7######################################################
8# Invalid result of MakeCylindricalHole when input solid is REVERSED
9######################################################
10
11set BugNumber OCC6334
12
13# 1. Make box
14box b 100 100 100
15
16subshape b f 1
17offsetshape t b 10 b_1
18
19decho off
20set che_t [checkshape t]
21decho on
22
23if {[regexp {Faulty} $che_t]} {
24 puts "Faulty ${BugNumber} : checkshape is wrong for t"
25}
26
27set bnd_t [bounding t]
28set ori [lindex [dtyp t] 2]
29puts "Orientation of thick solid is $ori"
30
31# 3. Make hole
32hole h t 110 50 50 1 0 0 10
33
34set che [checkshape h]
35if { [regexp {Faulty} $che] } {
36 puts "Faulty ${BugNumber} : checkshape is wrong for h"
37}
38
39set bnd_h [bounding h]
40
41renamevar h result
42
43set square 117509
44
45set nb_v_good 32
46set nb_e_good 53
47set nb_w_good 27
48set nb_f_good 24
49set nb_sh_good 1
50set nb_sol_good 1
51set nb_compsol_good 0
52set nb_compound_good 1
53set nb_shape_good 139
54
55
56# 4. Check thickness of box and hole
57set dx_t [expr [lindex $bnd_t 3] - [lindex $bnd_t 0]]
58set dx_h [expr [lindex $bnd_h 3] - [lindex $bnd_h 0]]
59
60if { [expr abs($dx_h - $dx_t)] > 1e-5 } {
61 puts "Thickness of solid = $dx_t"
62 puts "Thickness of solid with hole = $dx_h"
63 puts "Invalid result of making a hole"
64 puts "Faulty ${BugNumber}"
65} else {
66 puts "OK ${BugNumber}"
67}
68
69set 2dviewer 0