mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-04 18:06:22 +03:00
Protection against accessing null pointer is added in OpenGl_VertexBuffer::Create(). In command vreadpixel OpenGl-related warnings are redirected to cout so that they do not contaminate the command output. Test grid caf presentation is configured to ignore OpenGl-related warning messages. Tests in grid tools are configured to report status SKIPPED if tools are not available (OCCT is built without Qt).
70 lines
1.3 KiB
Plaintext
Executable File
70 lines
1.3 KiB
Plaintext
Executable File
puts "============"
|
|
puts "OCC22018"
|
|
puts "============"
|
|
puts ""
|
|
#######################################################################
|
|
# Select3D_SensitiveCircle::Matches(): DMin parameter left uninitialized
|
|
#######################################################################
|
|
|
|
set BugNumber OCC22018
|
|
|
|
vinit
|
|
|
|
vpoint p1 -5 0 0
|
|
vpoint p2 0 5 0
|
|
vpoint p3 5 0 0
|
|
|
|
vcircle c p1 p2 p3 1
|
|
|
|
vpoint p4 0 0 0
|
|
vpoint p5 5 5 0
|
|
vpoint p6 10 0 0
|
|
|
|
vcircle c1 p4 p5 p6 1
|
|
|
|
verase p1 p2 p3 p4 p5 p6
|
|
|
|
vfit
|
|
vtop
|
|
|
|
set White_R 1
|
|
set White_G 1
|
|
set White_B 0.94901901483535767
|
|
|
|
set Select_R 0
|
|
set Select_G 1
|
|
set Select_B 1
|
|
|
|
set x1 150
|
|
set x2 300
|
|
set y 200
|
|
|
|
vmoveto 0 0
|
|
vmoveto 0 0
|
|
|
|
if { [vreadpixel $x1 $y rgb name] != "IVORY" || [vreadpixel $x2 $y rgb name] != "IVORY" } {
|
|
puts "Error: unexpected color of not selected object"
|
|
}
|
|
|
|
vmoveto ${x1} ${y}
|
|
vmoveto ${x1} ${y}
|
|
|
|
if { [vreadpixel $x1 $y rgb name] != "WHITE" } {
|
|
puts "Error: unexpected color of selected object"
|
|
}
|
|
if { [vreadpixel $x2 $y rgb name] != "IVORY" } {
|
|
puts "Error: unexpected color of not selected object"
|
|
}
|
|
|
|
vmoveto ${x2} ${y}
|
|
vmoveto ${x2} ${y}
|
|
|
|
if { [vreadpixel $x1 $y rgb name] != "IVORY" } {
|
|
puts "Error: unexpected color of not selected object"
|
|
}
|
|
if { [vreadpixel $x2 $y rgb name] != "WHITE" } {
|
|
puts "Error: unexpected color of selected object"
|
|
}
|
|
|
|
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|