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

0031476: Wrong shading of a toroidal face from a SAT file

Added test case
This commit is contained in:
oan 2022-10-18 15:50:59 +03:00 committed by smoskvin
parent 3453354ee1
commit 3a24514d48

30
tests/bugs/mesh/bug31476 Normal file
View File

@ -0,0 +1,30 @@
puts "================"
puts "0031476: Wrong shading of a toroidal face from a SAT file"
puts "================"
puts ""
restore [locate_data_file bug31476_toroidal_face.brep] result
fixshape result result +i
vinit
vsetdispmode 1
vdisplay result
vfit
smallview
fit
isos result 0
triangles result
checktrinfo result -tri 135 -nod 104
set log [tricheck result]
if { [llength $log] != 0 } {
puts "Error : Invalid mesh"
} else {
puts "Mesh is OK"
}
checkview -screenshot -3d -path ${imagedir}/${test_image}_3d.png
checkview -screenshot -2d -path ${imagedir}/${test_image}_2d.png