1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00
san 9dba391d4c 0025071: Visualization - Inconsistent deflection values used by AIS_Shape
Fix misprint

Small correction for issue CR25071
2014-07-17 13:40:05 +04:00

48 lines
981 B
Plaintext
Executable File

pload QAcommands
puts "================"
puts "OCC22039"
puts "================"
puts ""
#######################################################################################
# Incorrect interactive detection (highlights) of elements
######################################################################################
set BugNumber OCC22039
restore [locate_data_file OCC12121-CrankArm.brep] result
vinit
vsetdispmode 1
vdisplay result
vfit
###set x1 101
set x1 102
set y1 199
set Color [QAGetPixelColor ${x1} ${y1}]
vmoveto ${x1} ${y1}
set ColorMove [QAGetPixelColor ${x1} ${y1}]
vselect ${x1} ${y1}
set ColorSelect [QAGetPixelColor ${x1} ${y1}]
set Color_Status 0
if { ${Color} != ${ColorMove} && ${Color} != ${ColorSelect} && ${ColorMove} != ${ColorSelect} } {
set Color_Status 0
} else {
set Color_Status 1
}
# Resume
puts ""
if { ${Color_Status} != 0} {
puts "Faulty ${BugNumber}"
} else {
puts "OK ${BugNumber}"
}
set square 24859.6
set only_screen 1