]> OCCT Git - occt.git/commitdiff
Visualization - Add test for flipped view #328
authorZernova Marina <36417100+mzernova@users.noreply.github.com>
Sat, 1 Feb 2025 19:56:25 +0000 (19:56 +0000)
committerGitHub <noreply@github.com>
Sat, 1 Feb 2025 19:56:25 +0000 (19:56 +0000)
Test case for #312

tests/v3d/bugs/bug32073 [new file with mode: 0644]

diff --git a/tests/v3d/bugs/bug32073 b/tests/v3d/bugs/bug32073
new file mode 100644 (file)
index 0000000..29508ee
--- /dev/null
@@ -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