0032237: Visualization, TKOpenGl - fix Gouraud shading within perspective camera...
[occt.git] / tests / bugs / vis / bug30437
CommitLineData
79b544e6 1puts "============="
2puts "0030437: Visualization, TKV3d - add Draw command to print rendering statistics"
3puts "============="
4
5pload MODELING VISUALIZATION
6vclear
7vinit View1 -width 800 -height 400
8vdrawparray g trianglestrips v -97.9819 -175.225 -7.6706 v -97.9819 194.163 -7.6706 v 271.406 -175.225 -7.6706 v 271.406 194.163 -7.6706
9
10vpoint pl1 -4 -17 0
11vpoint pl2 -4 -10 14
12vpoint pl3 0 -6 17
13vpoint pr1 179 17 39
14vpoint pr2 174 -2 12
15vpoint pr3 177 0 15
16vfit
17
18vcamera -persp
19vviewparams -scale 5 -proj -0 -1 -0 -up 0 0 1 -at -157 9.5 19
20vviewparams -scale 5 -proj -0 -1 -0 -up 0 0 1 -at -157 9.5 19
21
22set aPointsNb [vstatprofiler points]
23set aTrianglesNb [vstatprofiler triangles]
24
25# check number of not culled points and triangles
26if [expr $aPointsNb != 3 || $aTrianglesNb != 2] { puts "Error: unexpected number of culled elements" }