mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
27 lines
659 B
Plaintext
Executable File
27 lines
659 B
Plaintext
Executable File
puts "========"
|
|
puts "OCC155"
|
|
puts "========"
|
|
puts ""
|
|
###################################################
|
|
##puts "Creating of pCylinder 2D"
|
|
##puts "(visual checking for this case is desirable)"
|
|
###################################################
|
|
|
|
v2dinit
|
|
|
|
pcylinder c_y 5 10
|
|
v2ddisplay c_y
|
|
v2dfit
|
|
|
|
set color [QAAISGetPixelColor2d 338 75]
|
|
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 : pCylinder 2D was NOT LOADED properly into viewer"
|
|
}
|
|
|
|
set only_screen2d 1
|