1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-10 18:51:21 +03:00
kgv ab1f458034 0030690: Draw Harness - provide XDisplay command for displaying XDE document
XDisplay - added new command displaying XDE document in ViewerTest map of object:
> XDisplay Doc [label1 [label2 [...]]] [-explore {on|off}] [-docPrefix {on|off}] [-names {on|off}]
>              [-noupdate] [-dispMode Mode] [-highMode Mode]

vstate - added NULL checks.
vdisplay now prints error on attempt to specify unsupported display mode.
verase, vremove now raise Tcl exception on attempt to hide non-existing object.
verase, vremove, vdir now accept name masks like "verase b*".
vremove and vdir output is now consistent to verase command (space-separated list of removed objects).
2019-05-14 18:24:09 +03:00

38 lines
733 B
Plaintext

puts "===================================================================="
puts "OCC28162: Draw Harness - eliminate usage of deprecated Local Context"
puts "Select 2 edges or vertices"
puts "===================================================================="
vclear
vinit
box b 10 20 30
vdisplay b
vfit
set shift 1
# Create an identic relation from 2 edges.
#vremove rfaces
vselmode b 4 0
vselmode b 2 1
vselect 87 170
vselect 165 170 $shift
vrelation redges -identic
vdump $imagedir/${casename}_edges.png
# Create an identic relation from 2 vertices.
vremove redges
vselmode b 2 0
vselmode b 1 1
vselect 160 130 170 140
vselect 240 0 250 10 $shift
vrelation rvertices -identic
vdump $imagedir/${casename}_vertices.png