mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-06-30 12:14:08 +03:00
Usage of QAGetPixelColor were checked and corrected. Using simple comparison instead of regexp. Improved usage of command vreadpixel for standard colors. Command QAGetPixelColor was dropped from TKQADraw. Procedures "checkcolor" and auxiliary "checkpoint" were moved to DrawResources/TestCommands.tcl Some test cases using "checkcolor" for picking line color were simplified. Procedures checkcolor and checkpoint were changed to handle situation when pixel is out of view. Removed unnecessary use of command "vaspects -setwidth" in tests. Revert -setwidth change in test bugs/vis/bug23525
20 lines
556 B
Plaintext
20 lines
556 B
Plaintext
puts "============"
|
|
puts "CR25381"
|
|
puts "============"
|
|
puts ""
|
|
######################################################
|
|
# Visualization - XCAFPrs_AISObject ignores visibility flag for sub-shapes
|
|
######################################################
|
|
|
|
ReadStep D [locate_data_file bug25381_test_assembly_invisible.step]
|
|
XShow D
|
|
vfit
|
|
|
|
if { "[vreadpixel 198 172 rgb name]" != "WHITE" } {
|
|
puts "OK : XCAFPrs_AISObject get visibility flag for sub-shapes"
|
|
} else {
|
|
puts "Error : XCAFPrs_AISObject ignores visibility flag for sub-shapes"
|
|
}
|
|
|
|
set only_screen 1
|