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

33 lines
633 B
Plaintext
Executable File

puts "========"
puts "OCC264"
puts " (case 7)"
puts "========"
restore [locate_data_file OCC264_07.brep] result
checkshape result
tclean result
vinit
vdisplay result
vclear
isos result 0
triangles result
#smallview
#fit
set tri_info [trinfo result]
regexp { +([-0-9.+eE]+) +triangles} $tri_info full tri
regexp { +([-0-9.+eE]+) +nodes} $tri_info full nod
if { ($tri != 114 && $nod != 116) && ($tri != 116 && $nod != 118) } {
puts "Shady OCC264_7: here may be shading problem"
} else {
puts "Shading of OCC264_7 is OK"
}
checkprops result -s 150.283
checkview -display result -3d -path ${imagedir}/${test_image}.png