mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
51 lines
1.2 KiB
Plaintext
Executable File
51 lines
1.2 KiB
Plaintext
Executable File
|
|
puts "========"
|
|
puts "OCC193"
|
|
puts "========"
|
|
puts ""
|
|
##################################################
|
|
##puts "Selection of NODE of ROTATED 2D Circular Grid WITH Lines"
|
|
##puts "(visual checking for this case is desirable)"
|
|
##################################################
|
|
|
|
v2dinit
|
|
v2dgrid Circ 500 500 250 12 30 Lines
|
|
|
|
set Position_X -667.802
|
|
set Position_Y -441.402
|
|
|
|
if { [array get env os_type] != "" } {
|
|
set os $env(os_type)
|
|
}
|
|
if { [string compare $os "windows"] == 0 } {
|
|
set rd_ch 49411
|
|
set gr_ch 49411
|
|
set bl_ch 49411
|
|
} else {
|
|
set rd_ch 49803
|
|
set gr_ch 49803
|
|
set bl_ch 49803
|
|
}
|
|
|
|
set color [QAAISGetPixelColor2d 67 295]
|
|
regexp {RED +: +([-0-9.+eE]+)} $color full rd
|
|
regexp {GREEN +: +([-0-9.+eE]+)} $color full gr
|
|
regexp {BLUE +: +([-0-9.+eE]+)} $color full bl
|
|
|
|
set rd_int [expr int($rd * 1.e+05)]
|
|
set gr_int [expr int($gr * 1.e+05)]
|
|
set bl_int [expr int($bl * 1.e+05)]
|
|
|
|
if { ${rd_int} != ${rd_ch} || ${gr_int} != ${gr_ch} || ${bl_int} != ${bl_ch} } {
|
|
puts "Error : colors are not equal"
|
|
puts "Error : Objects was not displayed"
|
|
}
|
|
|
|
v2dpickgrid 67 295 x_coord y_coord
|
|
|
|
if { ${x_coord} != ${Position_X} || ${y_coord} != ${Position_Y} } {
|
|
puts "Error : Function v2dpickgrid works wrongly"
|
|
}
|
|
|
|
set only_screen2d 1
|