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