0032155: Tests - remove broken command OCC280
[occt.git] / tests / bugs / vis / bug30630_3
CommitLineData
6b9b7e3c 1puts "=================================================================================="
2puts "0030630: Visualization - wrong visualization of shape with mirrored transformation"
3puts "Check that solid with mirrored transformation is displayed as turned out"
4puts "=================================================================================="
5
6pload MODELING VISUALIZATION
7vclear
8vinit View1
9vaxo
10vrotate 3 0 0
11vcamera -persp
12
13# Simple box
14box b 1 1 1
15vdisplay -dispMode 1 b
16vaspects b -setBackFaceColor RED
17vfit
18vdump $imagedir/${casename}_simple.png
19verase b
20
21# Box with mirror transformation
22box a 1 1 1
23bmirror a 0 0 0 1 0 0
24vdisplay -dispMode 1 a
25vaspects a -setBackFaceColor RED
26vfit
27box aa -0.5 0.5 0.5 0.1 0.1 0.1
28vdisplay -dispMode 1 aa
aaf8d6a9 29vsetcolor aa BLUE
6b9b7e3c 30vdump $imagedir/${casename}_mirror.png
31if { [vreadpixel 195 220 rgb name] != "BLUE2" } { puts "Error: mirrored box should look inside out" }
32verase a
33
34# Box with mirror transformation and reversed face
35box c 1 1 1
36bmirror c 0 0 0 1 0 0
37orientation c R
38vdisplay -dispMode 1 c
39vaspects c -setBackFaceColor RED
40vfit
41vdump $imagedir/${casename}_mirrev.png
7b5e532f 42if { [vreadpixel 195 220 rgb name] == "BLUE2" } { puts "Error: reversed mirrored box should NOT look inside out" }