1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-29 14:00:49 +03:00

Visualization - Add test for flipped view #328

Test case for #312
This commit is contained in:
Zernova Marina
2025-02-01 19:56:25 +00:00
committed by GitHub
parent 98a28c41a8
commit fda875b293

22
tests/v3d/bugs/bug32073 Normal file
View File

@@ -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