mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-05 18:16:23 +03:00
0004894: Problems with shading in vdisplay
Adding test case
This commit is contained in:
parent
5d3515528f
commit
643bacb9f8
24
tests/bugs/vis/bug4894
Executable file
24
tests/bugs/vis/bug4894
Executable 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
|
Loading…
x
Reference in New Issue
Block a user