0032208: Tests - refactor visualization tests to cover several graphic drivers
[occt.git] / tests / v3d / bugs / bug23709_4
diff --git a/tests/v3d/bugs/bug23709_4 b/tests/v3d/bugs/bug23709_4
new file mode 100644 (file)
index 0000000..c3fc713
--- /dev/null
@@ -0,0 +1,19 @@
+puts "==========="
+puts "OCC23709: Redesign of hlrtest command"
+puts "==========="
+puts ""
+
+pload MODELING VISUALIZATION
+restore [locate_data_file bug23709_surfcone.brep] result
+vinit View1
+vdisplay result
+vrotate 35 0 0
+vfit
+vhlr on
+vhlrtype algo result
+vaspects -setwidth 5
+if { "[vreadpixel 183 267 rgb name]" != "YELLOW" } {
+  puts "Error : color is not yellow"
+}
+
+vdump $imagedir/${casename}.png