0032208: Tests - refactor visualization tests to cover several graphic drivers
[occt.git] / tests / v3d / bugs / bug112_1
diff --git a/tests/v3d/bugs/bug112_1 b/tests/v3d/bugs/bug112_1
new file mode 100644 (file)
index 0000000..b21e94e
--- /dev/null
@@ -0,0 +1,26 @@
+puts "========================"
+puts " BUC60956 "
+puts " OCC112 "
+puts "========================"
+
+pload MODELING VISUALIZATION
+restore [locate_data_file OCC20.brep] res
+checkshape res
+
+set first [trinfo res]
+tclean res
+
+######################################################################
+catch {file delete ${imagedir}/vrem.brep}
+save res ${imagedir}/vrem.brep
+
+vinit View1
+restore ${imagedir}/vrem.brep result
+vdisplay result
+vsetdispmode result 1
+
+set second [trinfo result]
+
+if {$first == $second} { puts "Faulty OCC112 : Mesh for shading was recalculated !!!" }
+
+vdump $imagedir/${casename}.png