0031189: Draw Harness, ViewerTest - send messages to Message::DefaultMessenger()
[occt.git] / tests / bugs / vis / bug25853
CommitLineData
44b47a9a 1puts "=========="
2puts "OCC25853"
3puts "=========="
4puts ""
5###########################################################
6# Edges disappear or reappear when displaying new edges
7###########################################################
8
9vinit View1 w=1024 h=1024
10vsetdispmode View1 1
11vclear
12
13#vtop
14set scale 0.086865724500890112
15set vpprojx 0.0
16set vpprojy 0.0
17set vpprojz 1.0
18set vpupx 0.0
19set vpupy 1.0
20set vpupz 0.0
21set vpatx 4995
22set vpaty 500
23set vpatz 0
24set vpeyex 4995
25set vpeyey 500
26set vpeyez 0.0001
27vviewparams -scale $scale -eye $vpeyex $vpeyey $vpeyez -at $vpatx $vpaty $vpatz -up $vpupx $vpupy $vpupz -proj $vpprojx $vpprojy $vpprojz
28
29set NB 1000
30
31proc draw_lines {{distance 10.0}} {
32 # set colors to corner spheres
33 for {set i 0} {$i < $::NB} {incr i} {
34 set x [expr $i * $distance]
35 set ya 0.0
36 set yb 1000.0
37 set z 0.0
38 vertex v1 $x $ya $z
39 vertex v2 $x $yb $z
40 edge e$i v1 v2
41 vdisplay -update e$i
42 puts "$i: $x $ya $yb $z"
43 }
44}
45
46puts "Start test lines"
47draw_lines 10.0
48
49checkcolor 804 483 1 0 0
50checkcolor 860 500 1 0 0
51
5747059b 52checkview -screenshot -3d -path ${imagedir}/${test_image}.png