From fda875b2933b75f7545cd9dce7758f246c9b4916 Mon Sep 17 00:00:00 2001 From: Zernova Marina <36417100+mzernova@users.noreply.github.com> Date: Sat, 1 Feb 2025 19:56:25 +0000 Subject: [PATCH] Visualization - Add test for flipped view #328 Test case for #312 --- tests/v3d/bugs/bug32073 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 tests/v3d/bugs/bug32073 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