3bea4c16 |
1 | puts "============" |
2 | puts "OCC20904" |
3 | puts "============" |
4 | puts "" |
5 | ####################################################################### |
6 | # BRepBuilderAPI_Sewing produces a shape with big tolerance |
7 | ####################################################################### |
8 | |
9 | set BugNumber OCC20904 |
10 | |
11 | restore [locate_data_file bug20904_Shell_argument.brep] a |
12 | |
13 | set tolerance_in 1.e-6 |
14 | set tolerance_out ${tolerance_in} |
15 | sewing result ${tolerance_in} a |
16 | |
17 | set tolerance_list [maxtolerance result] |
18 | regexp { +Face +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance_list full MaxFaceTolerance |
19 | regexp { +Edge +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance_list full MaxEdgeTolerance |
20 | regexp { +Vertex +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance_list full MaxVertexTolerance |
21 | |
22 | set status 0 |
23 | |
24 | if { ${MaxFaceTolerance} > ${tolerance_out} } { |
25 | set status 1 |
26 | puts "Max Face Tolerance is bad" |
27 | } |
28 | |
29 | if { ${MaxEdgeTolerance} > ${tolerance_out} } { |
30 | set status 1 |
31 | puts "Max Edge Tolerance is bad" |
32 | } |
33 | |
34 | if { ${MaxVertexTolerance} > ${tolerance_out} } { |
35 | set status 1 |
36 | puts "Max Vertex Tolerance is bad" |
37 | } |
38 | |
39 | # Resume |
40 | puts "" |
41 | if { ${status} != 0 } { |
42 | puts "Faulty ${BugNumber}" |
43 | } else { |
44 | puts "OK ${BugNumber}" |
45 | } |
46 | |
fb60057d |
47 | checkmaxtol result -ref 1.0000006355287399e-007 |
5ae01c85 |
48 | checknbshapes result -shell 1 |
49 | checkfreebounds result 8 |
50 | |
58cf74e0 |
51 | checkprops result -s 1.33253e+06 |
5747059b |
52 | checkview -display result -2d -path ${imagedir}/${test_image}.png |