0022785: Draw Harness - add possibility to remove a text drawn by the command vdrawtext
[occt.git] / tests / bugs / vis / bug24388_2
CommitLineData
e9224045 1puts "==========="
2puts "OCC24388"
3puts "==========="
4puts ""
5##################################################################
6# 0024388: Option to enable visualization of hidden lines in DRAW
7# Checks if dotted hidden lines are displayed properly in HLR mode.
8##################################################################
9
10set m_pi2 1,57
11pcone a 5 0 10
12vinit
13vdisplay a
14vrotate 35 0 0
15vfit
16vhlr on 0
17vhlrtype algo a
18vrotate -$m_pi2 -$m_pi2 0
19vfit
20
21set x_coord 131
22set y_coord 240
23
24checkcolor $x_coord $y_coord 0 0 0
25
26if { $stat != 1 } {
27 puts "Error : Drawing hidden lines as dotted lines produces wrong result."
28}
29
30vdump $imagedir/${casename}_without_lines.png
31
32vhlr on 1
33
34set x_coord 131
35set y_coord 240
36
37# Check display of dotted hidden lines
38checkcolor $x_coord $y_coord 0.2 0.2 0.2
39
40if { $stat != 1 } {
41 puts "Error : Drawing hidden lines as dotted lines produces wrong result."
42}
43
44vdump $imagedir/${casename}_with_lines.png