mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0031476: Wrong shading of a toroidal face from a SAT file
Added test case
This commit is contained in:
parent
3453354ee1
commit
3a24514d48
30
tests/bugs/mesh/bug31476
Normal file
30
tests/bugs/mesh/bug31476
Normal 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
|
Loading…
x
Reference in New Issue
Block a user