2 puts "CR25760: Visualization - precision factor added to ZNear, ZFar in method ZFitAll() of Graphic3d_Camera is not enough"
6 pload MODELING VISUALIZATION
7 vinit View1 w=409 h=409
14 for {set i 8} {$i <= 8} {incr i} {
15 set min_z [expr pow (-10, $i)]
16 set max_z [expr $min_z + 1000]
17 plane p1 0 0 $min_z 0 0 1
18 plane p2 0 0 $max_z 0 0 1
20 mkface f1 p1 -1 0 -1 0
28 for {set z [expr $max_z + 1.0]} {$z <= 1e10} {set z [expr abs ($z) * 1.2]} {
29 vviewparams -eye 0 0 $z
31 if { [checkcolor {*}$pix1 0 1 1] != 1 } {
32 puts "Error: 2D projection test failed with the following parameters:"
42 if { [checkcolor {*}$pix2 0 1 1] != 1 } {
43 puts "Error: 2D projection test failed with the following parameters:"
59 ####################################################################
60 # Test orthographic camera without frustum culling. #
61 ####################################################################
63 vrenderparams -frustumculling off
64 if { [test2d] != 1 } { puts "Error: 2D projection test failed: view frustum culling is OFF" }
66 ####################################################################
67 # Test orthographic camera with frustum culling. #
68 ####################################################################
70 vrenderparams -frustumculling on
71 if { [test2d] != 1 } { puts "Error: 2D projection test failed: view frustum culling is ON" }