mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-04 18:06:22 +03:00
Fixed angle calculation for view rotation. Added draw command vmousebutton to test mouse button events.
31 lines
692 B
Plaintext
31 lines
692 B
Plaintext
puts "============"
|
|
puts "0033746: Visualization - Unexpected moving with AIS_ViewCube"
|
|
puts "============"
|
|
puts ""
|
|
|
|
pload MODELING VISUALIZATION
|
|
vclear
|
|
vinit View1
|
|
|
|
box b 0 0 -100 100 20 10
|
|
vdisplay -dispMode 1 b
|
|
|
|
vviewcube c
|
|
vcamera -navmode fly
|
|
|
|
vtop
|
|
vfit
|
|
vmousebutton 200 200 -button left -down
|
|
vmousebutton 201 200 -button left -up
|
|
if { [vreadpixel 100 200 -rgb -name] == "BLACK" } { puts "Error: wrong transformation" }
|
|
|
|
vdump $::imagedir/${::casename}_top.png
|
|
|
|
vbottom
|
|
vfit
|
|
vmousebutton 200 200 -button left -down
|
|
vmousebutton 201 200 -button left -up
|
|
if { [vreadpixel 100 200 -rgb -name] == "BLACK" } { puts "Error: wrong transformation" }
|
|
|
|
vdump $::imagedir/${::casename}_bottom.png
|