From 3a24514d48d9f43e7d976d1be822439535bdeb42 Mon Sep 17 00:00:00 2001 From: oan Date: Tue, 18 Oct 2022 15:50:59 +0300 Subject: [PATCH] 0031476: Wrong shading of a toroidal face from a SAT file Added test case --- tests/bugs/mesh/bug31476 | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tests/bugs/mesh/bug31476 diff --git a/tests/bugs/mesh/bug31476 b/tests/bugs/mesh/bug31476 new file mode 100644 index 0000000000..58b529b2c2 --- /dev/null +++ b/tests/bugs/mesh/bug31476 @@ -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