1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-26 10:19:45 +03:00
occt/tests/bugs/vis/bug641
isz af65fb1941 0025783: Visualization - allow Z-layer to draw 2D objects and to make it alternative to Overlay and Underlay
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
2015-04-16 11:35:04 +03:00

33 lines
733 B
Plaintext
Executable File

puts "TODO OCC641 ALL: An exception was caught"
puts "TODO OCC641 ALL: \\*\\* Exception \\*\\*.*"
puts "TODO OCC641 ALL: Error : result shape is displayed wrongly"
puts "================"
puts "OCC641"
puts "SAM1559"
puts "================"
puts ""
#################################################
## Exception during attemption to display shape ==>SAM1559 (#2901)
#################################################
restore [locate_data_file OCC641.brep] a
vinit
vdisplay a
vfit
copy a result
if [catch {tmirror result 0 0 0 0 1 0 } res] {
puts "Error : function tmirror works wrongly"
} else {
if [catch { vdisplay result } res] {
puts "Error : result shape is displayed wrongly"
}
vfit
}
set only_screen 1