1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00
occt/tests/v3d/dimensions/equaldistance
isk 404c893694 0028162: Draw Harness - eliminate usage of deprecated Local Context
Create a general draw command 'VRelation' and drop the old 'relation' commands.
Add test cases for new draw command "vrelation".
Add two new methods: Activate and Deactivate which activate/deactivate the given selection mode for all displayed objects.
Eliminate deprecated local context methods in ObjectCommands, QABugs.
Eliminate deprecated local context methods in mfc standard sample and qt samples.
2016-12-16 11:58:08 +03:00

39 lines
779 B
Plaintext

puts "===================================================================="
puts "OCC28162: Draw Harness - eliminate usage of deprecated Local Context"
puts "Select 4 edges or vertices"
puts "===================================================================="
vclear
vinit
box b 10 20 30
vdisplay b
vfit
set shift 1
# Create an equaldistance relation from 4 edges.
vselmode b 2 1
vselect 123 112
vselect 280 23 $shift
vselect 123 382 $shift
vselect 280 293 $shift
vrelation r4edges -equaldistance
vzoom 0.5
vdump $imagedir/${casename}_edges.png
# Create an equaldistance relation from 4 vertices.
vremove r4edges
vfit
vselect 0 0
vselmode b 2 0
vselmode b 1 1
vselect 75 0 335 140
vrelation r4vertices -equaldistance
vzoom 0.5
vdump $imagedir/${casename}_vertices.png