mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-08 14:17:06 +03:00
0026217: Visualization, Select3D_SensitiveCircle - fix compilation with CLang for iOS
Inclusion detection for filled sensitive circles was corrected
This commit is contained in:
33
tests/bugs/vis/bug26217
Normal file
33
tests/bugs/vis/bug26217
Normal file
@@ -0,0 +1,33 @@
|
||||
puts "============"
|
||||
puts "CR26217"
|
||||
puts "============"
|
||||
puts ""
|
||||
|
||||
##########################################################################################
|
||||
puts "Visualization, Select3D_SensitiveCircle - fix compilation with CLang for iOS"
|
||||
##########################################################################################
|
||||
|
||||
pload VISUALIZATION
|
||||
|
||||
vinit View1
|
||||
vpoint radP1 0 0 0
|
||||
vpoint radP2 50 50 0
|
||||
vpoint radP3 100 0 0
|
||||
vcircle circle radP1 radP2 radP3 1
|
||||
vfit
|
||||
|
||||
vselect 40 120 185 320
|
||||
set aColor [vreadpixel 120 200 rgb name]
|
||||
if {$aColor != "DARKGOLDENROD3"} {
|
||||
puts "ERROR: the circle is selected with no overlap mode activated"
|
||||
}
|
||||
|
||||
vselect 0 0
|
||||
|
||||
vselect 40 120 185 320 -allowoverlap 1
|
||||
set aColor [vreadpixel 120 200 rgb name]
|
||||
if {$aColor != "GRAY80"} {
|
||||
puts "ERROR: the circle is not selected with overlap mode activated"
|
||||
}
|
||||
|
||||
vdump ${imagedir}/${casename}.png
|
Reference in New Issue
Block a user