1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-07-30 13:05:50 +03:00
occt/tests/bugs/vis/bug31221
luz paz 7b5e532f83 0031939: Coding - correction of spelling errors in comments [part 7]
Fix various typos

Fixed via codespell v2.1.dev
2021-01-20 21:27:44 +03:00

52 lines
1.1 KiB
Plaintext

puts "==========="
puts "0031221: Visualization - selection filter in context"
puts "==========="
puts ""
vertex v 0 0 0
vertex v1 1 0 0
vertex v2 10 0 0
edge e v1 v2
vclear
vinit View1
vdisplay v
vdisplay e
vfit
# 1.
# Set composition filter AND to apply VERTEX and EDGE filter
# the vertex and the edge isn't selected
vselfilter -contextfilter AND -type VERTEX -secondtype EDGE
vchangeselected e
set aNbSelected [vnbselected]
if { $aNbSelected != 0 } { puts "Error: combined AND filter was not applied" }
vchangeselected v
set aNbSelected [vnbselected]
if { $aNbSelected != 0 } { puts "Error: combined AND filter was not applied" }
# 2.
# Deselected the edge and the vertex
vchangeselected e
vchangeselected v
# 3.
# Set composition filter OR to apply VERTEX and EDGE filter
# the vertex and the edge is selected
vselfilter -contextfilter OR -type VERTEX -secondtype EDGE
vchangeselected e
set aNbSelected [vnbselected]
if { $aNbSelected != 1 } { puts "Error: combined OR filter was not applied" }
vchangeselected v
set aNbSelected [vnbselected]
if { $aNbSelected != 2 } { puts "Error: combined OR filter was not applied" }