mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-05-06 10:36:12 +03:00
Add one more pre-defined Z-layer Graphic3d_ZLayerId_BotOSD. Define new Transformation Persistence flags Graphic3d_TMF_2d and Graphic3d_TMF_2d_IsTopDown for displaying objects in screen coordinates. Anchor point defines angle of the screen to display the object in similar way as for Graphic3d_TMF_TriedronPers. Extend Draw Harness command vdisplay with new options: -overlay as alias for -toposd. -underlay and -botosd. -noselect to prevent automatic selection activation. -dispMode and -highMode to define displaying and highlighting modes. -2d, -2dtopdown and -3d to manage displaying in screen coordinates. -trsfPers and -trsfPersPos for Transformation Persistence options. Drop command vsettransmode, replaced by vdisplay. Correction of test-case bugs vis bug641
31 lines
579 B
Plaintext
Executable File
31 lines
579 B
Plaintext
Executable File
puts "============"
|
|
puts "OCC23120"
|
|
puts "============"
|
|
puts ""
|
|
###########################################################################
|
|
# Transform persistence is not restored
|
|
###########################################################################
|
|
|
|
box b1 10 20 30
|
|
box b2 10 20 30
|
|
ttranslate b2 50 50 0
|
|
vinit
|
|
vdisplay b1 -trsfPers trihedron
|
|
|
|
vdisplay b2
|
|
vfit
|
|
vsetdispmode 1
|
|
vzoom 0.5
|
|
vpan 100 0
|
|
|
|
set x_coord 300
|
|
set y_coord 130
|
|
|
|
checkcolor $x_coord $y_coord 0.78 0.55 0.9
|
|
|
|
if { $stat != 1 } {
|
|
puts "Error : Transform persistence is not restored"
|
|
}
|
|
|
|
set only_screen 1
|