mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
45 lines
1.1 KiB
Plaintext
Executable File
45 lines
1.1 KiB
Plaintext
Executable File
puts "========================"
|
|
puts " OCC224 "
|
|
puts "========================"
|
|
puts ""
|
|
#################################################
|
|
##puts "Checking of function V2DUNSETWIDTH for shapes "
|
|
##puts "(visual checking for this case is desirable)"
|
|
#################################################
|
|
|
|
v2dinit
|
|
|
|
psphere s_p 100 360
|
|
set mistake1 0
|
|
v2ddisplay s_p 0 0 0 1 1 1 1 0 0
|
|
v2dfit
|
|
v2dsetwidth s_p VERYTHICK
|
|
set Color_R 1
|
|
set Color_G 1
|
|
set Color_B 0
|
|
|
|
set color [QAAISGetPixelColor2d 393 210]
|
|
regexp {RED +: +([-0-9.+eE]+)} $color full rd
|
|
regexp {GREEN +: +([-0-9.+eE]+)} $color full gr
|
|
regexp {BLUE +: +([-0-9.+eE]+)} $color full bl
|
|
|
|
if { ${rd} != 1 || ${gr} != 1 || ${bl} != 0 } {
|
|
puts "Error : colors are not equal"
|
|
puts "Error : New widht was NOT assigned"
|
|
}
|
|
|
|
v2dunsetwidth s_p
|
|
|
|
set color [QAAISGetPixelColor2d 393 210]
|
|
regexp {RED +: +([-0-9.+eE]+)} $color full rd
|
|
regexp {GREEN +: +([-0-9.+eE]+)} $color full gr
|
|
regexp {BLUE +: +([-0-9.+eE]+)} $color full bl
|
|
|
|
if { ${rd} != 0 || ${gr} != 0 || ${bl} != 0 } {
|
|
puts "Error : colors are not equal"
|
|
puts "Error : Function V2DUNSETWIDTH for shapes does NOT WORK properly"
|
|
}
|
|
|
|
set only_screen2d 1
|
|
|