0032155: Tests - remove broken command OCC280
[occt.git] / tests / bugs / vis / bug30630_1
CommitLineData
6b9b7e3c 1puts "=================================================================================="
2puts "0030630: Visualization - wrong visualization of shape with mirrored transformation"
3puts "Check that displaying of non-solid shapes (shells) is not affected by mirror transformation"
4puts "=================================================================================="
5
6pload MODELING VISUALIZATION
7vclear
8vinit View1
9vaxo
10vrotate 3 0 0
11vcamera -persp
12
13# Simple box
14box b 1 1 1
15explode b sh
16renamevar b_1 b
17vdisplay -dispMode 1 b
18vaspects b -setBackFaceColor RED
19vfit
20vdump $imagedir/${casename}_simple.png
21verase b
22
23# Box with mirror transformation
24box a 1 1 1
25bmirror a 0 0 0 1 0 0
26explode a sh
27renamevar a_1 a
28vdisplay -dispMode 1 a
29vaspects a -setBackFaceColor RED
30vfit
31box aa -0.5 0.5 0.5 0.1 0.1 0.1
32vdisplay -dispMode 1 aa
aaf8d6a9 33vsetcolor aa BLUE
6b9b7e3c 34vdump $imagedir/${casename}_mirror.png
35if { [vreadpixel 300 200 rgb name] != "RED2" } { puts "Error: shell of mirrored box should show back faces" }
36verase a
37
38# Box with mirror transformation and reversed face
39box c 1 1 1
40bmirror c 0 0 0 1 0 0
41orientation c R
42explode c sh
43renamevar c_1 c
44vdisplay -dispMode 1 c
45vaspects c -setBackFaceColor RED
46vfit
47vdump $imagedir/${casename}_mirrev.png
48if { [vreadpixel 300 200 rgb name] == "RED2" } { puts "Error: shell of reversed mirrored box should show front faces" }