From: Zernova Marina <36417100+mzernova@users.noreply.github.com> Date: Sat, 1 Feb 2025 19:56:25 +0000 (+0000) Subject: Visualization - Add test for flipped view #328 X-Git-Tag: V7_9_0_beta1~8 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=fda875b2933b75f7545cd9dce7758f246c9b4916;p=occt.git Visualization - Add test for flipped view #328 Test case for #312 --- diff --git a/tests/v3d/bugs/bug32073 b/tests/v3d/bugs/bug32073 new file mode 100644 index 0000000000..29508ee150 --- /dev/null +++ b/tests/v3d/bugs/bug32073 @@ -0,0 +1,22 @@ +puts "========" +puts "0032073: Visualization - implement interface to change myToFlipOutput of OpenGl_View" +puts "========" +puts "" + +pload MODELING VISUALIZATION +pcone c 10 0 10 +vinit View1 +vdisplay c -dispmode 1 +vcamera -ortho +vfront +vfit + +if { [vreadpixel 100 250 -rgb -name] != "DARKGOLDENROD" } { puts "Error: view is flipped" } + +vdump $imagedir/${casename}.png + +vrenderparams -flip on + +if { [vreadpixel 100 250 -rgb -name] != "DARKGOLDENROD" } { puts "Error: view is not flipped" } + +vdump $imagedir/${casename}_flipped.png