0030969: Coding Rules - refactor Quantity_Color.cxx color table definition
[occt.git] / tests / v3d / glsl / double_precision
CommitLineData
7c3ef2f7 1puts "========"
2puts "0024393: Visualization - objects position with enchanced precision"
3puts "========"
4
5pload MODELING VISUALIZATION
6vclear
7vinit View1
8vaxo
9vzbufftrihedron
10circle c 0 0 0 0.001
11mkedge e c
12wire w e
13plane s
14mkface f0 s w
15mkface f1000 s w
16ttranslate f1000 1000 0 0
17# Display object with pre-applied transformation.
18# Result presentation is already corrupted
19# AND it jumps while rotating the camera.
20vpoint v1000 1000 0 0.001
21vdisplay -dispMode 1 f1000
22vfit
23
24# Display object with external transformation.
25# Result presentation jumps while rotating the camera.
26vdisplay -dispMode 1 f0
27vsetlocation f0 1000 0 0
28
29# Display object with external transformation
30# in Z-layer with translated Origin.
31# Result presentation does not jump while rotating the camera.
32vzlayer top -origin 1000 0 0
33vdisplay -dispMode 1 -top f0
34
35# check transformation persistence
36vtrihedron tt
37vdisplay -top -trihedron topLeft 100 100 tt
38
39box zp 40 50 30
40vdisplay -top -dispMode 1 -trsfPers zoom -trsfPersPos 1000 0 0 zp
41
42# check clippling planes
43vclipplane pln -equation -1 0 0 1000 -set
44
45# check positional lights
46vlight add positional pos 1000 0 0.001 color RED1 headlight 0
47
48vremove f1000
49vmoveto 220 220
50
51vdrawtext text Text -pos 0 0 0
52vdisplay -top text -trsfPers zoomRotate -trsfPersPos 1000 0 0.001
53
54vdump $::imagedir/${::casename}.png