mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
53 lines
1.4 KiB
Plaintext
Executable File
53 lines
1.4 KiB
Plaintext
Executable File
puts "============"
|
|
puts "OCC20904"
|
|
puts "============"
|
|
puts ""
|
|
#######################################################################
|
|
# BRepBuilderAPI_Sewing produces a shape with big tolerance
|
|
#######################################################################
|
|
|
|
set BugNumber OCC20904
|
|
|
|
restore [locate_data_file bug20904_Shell_argument.brep] a
|
|
|
|
set tolerance_in 1.e-6
|
|
set tolerance_out ${tolerance_in}
|
|
sewing result ${tolerance_in} a
|
|
|
|
set tolerance_list [maxtolerance result]
|
|
regexp { +Face +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance_list full MaxFaceTolerance
|
|
regexp { +Edge +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance_list full MaxEdgeTolerance
|
|
regexp { +Vertex +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance_list full MaxVertexTolerance
|
|
|
|
set status 0
|
|
|
|
if { ${MaxFaceTolerance} > ${tolerance_out} } {
|
|
set status 1
|
|
puts "Max Face Tolerance is bad"
|
|
}
|
|
|
|
if { ${MaxEdgeTolerance} > ${tolerance_out} } {
|
|
set status 1
|
|
puts "Max Edge Tolerance is bad"
|
|
}
|
|
|
|
if { ${MaxVertexTolerance} > ${tolerance_out} } {
|
|
set status 1
|
|
puts "Max Vertex Tolerance is bad"
|
|
}
|
|
|
|
# Resume
|
|
puts ""
|
|
if { ${status} != 0 } {
|
|
puts "Faulty ${BugNumber}"
|
|
} else {
|
|
puts "OK ${BugNumber}"
|
|
}
|
|
|
|
checkmaxtol result -ref 1.0000006355287399e-007
|
|
checknbshapes result -shell 1
|
|
checkfreebounds result 8
|
|
|
|
checkprops result -s 1.33253e+06
|
|
checkview -display result -2d -path ${imagedir}/${test_image}.png
|