0031304: Configuration - TKACIS building failure due to duplicated symbol GeomFillFus...
[occt.git] / tests / bugs / vis / bug25679
CommitLineData
0bb09048 1puts "========"
2puts "OCC25679"
3puts "========"
4puts ""
5############################################################################
6# Visualization, TKOpenGl - View frustum culling clips wrong objects
7############################################################################
8
9pload VISUALIZATION MODELING
10
11set LINES_IN_ROW 50
12
13set aNoCulling $imagedir/${casename}_without.png
14set aWithCulling $imagedir/${casename}_with.png
15set aDiff $imagedir/${casename}_diff.png
16
17vinit
18
19for {set i 0} {$i < $LINES_IN_ROW} {incr i} {
20 for {set j 0} {$j < $LINES_IN_ROW} {incr j} {
21 set aLineName "line"
22 append aLineName [expr $i * $LINES_IN_ROW + $j]
23 vline $aLineName 0 0 0 1 0 0
24 vsetlocation $aLineName [expr $i * 3] [expr $j * 3] 0
25 }
26}
27
28vfit
29
0e3025bc 30vrenderparams -frustumculling on
0bb09048 31vdump $aWithCulling
0e3025bc 32vrenderparams -frustumculling off
0bb09048 33vdump $aNoCulling
34
35set aDiffRes [diffimage $aWithCulling $aNoCulling 0.1 0 0 $aDiff]
36if {$aDiffRes != 0} {
37 puts "ERROR : Test failed: there is a difference between images rendered with and without frustum culling"
38}