1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
occt/tests/bugs/moddata_1/bug20904_1
ski 5747059b21 0026833: Create command checkview containing all viewer types
Created command checkview for displaying shapes.
2016-02-05 11:14:37 +03:00

54 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_face_bas.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 9.9999999999999995e-008
checknbshapes result -shell 0
checkfreebounds result 2
checkprops result -s 30078.9
checkview -display result -2d -path ${imagedir}/${test_image}.png