1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00

0004894: Problems with shading in vdisplay

Adding test case
This commit is contained in:
apn 2012-11-07 13:58:13 +04:00
parent 5d3515528f
commit 643bacb9f8

24
tests/bugs/vis/bug4894 Executable file
View File

@ -0,0 +1,24 @@
puts "============"
puts "OCC4894"
puts "============"
puts ""
#######################################################################
# Problems with sharding in vdisplay
#######################################################################
restore [locate_data_file bug4894_face_cyl] result
vinit
vdisplay result
tclean result
trinfo result
vsetdispmode 1
set info [trinfo result]
regexp { +([-0-9.+eE]+) +triangles} $info full tr
regexp { +([-0-9.+eE]+) +nodes} $info full nd
if { $tr <= 0 || $nd <= 0 } {
puts "Error : Problems with shading"
}
set 3dviewer 2