0029528: Visualization, TKOpenGl - allow defining sRGB textures
[occt.git] / tests / bugs / vis / bug29938
CommitLineData
17017555 1puts "============"
2puts "0029938: Visualization - SelectMgr_ViewerSelector::PickedPoint() should return point lying on an object"
3puts "============"
4puts ""
5
6pload MODELING VISUALIZATION
7box b 1 2 3
8vcaps -core
9vclear
10vinit View1
11vaxo
12vdisplay -dispMode 1 -mutable b
13vfit
14vrotate 0.2 0.0 0.0
15vselmode 0 off
16
17#Check Vertex selection mode case
18vselmode 1 on
19vmoveto 337 45
20set pnt "1 2 3"
21set exp {Point: ([-0-9.+eE]+) ([-0-9.+eE]+) ([-0-9.+eE]+)}
22set match [regexp -all -inline $exp [vstate -entities]]
23foreach {_ x y z} $match {
24 if {$pnt != "$x $y $z"} {
25 puts "Error: Calculate point ($x $y $z) is not equal to target ($pnt)" }
26}
27
28#Check Wire selection mode case
29vselmode 1 off
30vselmode 2 on
31vmoveto 295 317
32set pnt "1 2 0"
33set exp {Point: ([-0-9.+eE]+) ([-0-9.+eE]+) ([-0-9.+eE]+)}
34set match [regexp -all -inline $exp [vstate -entities]]
35foreach {_ x y z} $match {
36 if {$pnt != "$x $y $z"} {
37 puts "Error: Calculate point ($x $y $z) is not equal to target ($pnt)" }
38}
39
40#Check Face selection mode case
41vselmode 2 off
42vselmode 4 on
43vmoveto 284 324
44set pnt "1 1.8383 0"
45set exp {Point: ([-0-9.+eE]+) ([-0-9.+eE]+) ([-0-9.+eE]+)}
46set match [regexp -all -inline $exp [vstate -entities]]
47foreach {_ x y z} $match {
48 if {$pnt != "$x $y $z"} {
49 puts "Error: Calculate point ($x $y $z) is not equal to target ($pnt)" }
50}