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

28 lines
901 B
Plaintext
Executable File

puts "================"
puts "OCC1243"
puts "================"
puts "Bad solid created from face with command 'revol'"
puts ""
restore [locate_data_file OCC1243-2.brep] f1
checkshape f1
revol result f1 -5000.0 0.0 0.0 10000.0 0.0 0.0 360.0
set tolerance [maxtolerance result]
regexp { +Face +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxFaceTolerance
regexp { +Edge +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxEdgeTolerance
regexp { +Vertex +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxVertexTolerance
set max_tolerance 1.00000e-06
if { ${MaxFaceTolerance} > ${max_tolerance} || ${MaxEdgeTolerance} > ${max_tolerance} || ${MaxVertexTolerance} > ${max_tolerance} } {
puts "OCC1243 - Error"
} else {
puts "OCC1243 - OK"
}
checkprops result -s 3.06024e+06
checkshape result
checkview -display result -2d -path ${imagedir}/${test_image}.png