From 6c27a5d993c08aac1af4adc9d7809be4ae5993b3 Mon Sep 17 00:00:00 2001 From: oan Date: Tue, 13 Nov 2018 13:08:37 +0300 Subject: [PATCH] 0029964: Bad arc discretization Added test cases. --- tests/bugs/mesh/bug29964 | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tests/bugs/mesh/bug29964 diff --git a/tests/bugs/mesh/bug29964 b/tests/bugs/mesh/bug29964 new file mode 100644 index 0000000000..d30609e89c --- /dev/null +++ b/tests/bugs/mesh/bug29964 @@ -0,0 +1,30 @@ +puts "================" +puts "OCC29964: Bad arc discretization" +puts "================" +puts "" + +set BugNumber OCC29964 + +restore [locate_data_file bug29964_partition.brep] a + +explode a f +compound a_5 a_6 a_9 a_10 result +donly result + +isos result 0 +triangles result +top +fit + +set tolerances {0.1 0.01 0.001} +set ref_triangles {15 33 318} +set ref_nodes {23 41 326} + +for {set i 0} {$i < 3} {incr i} { + tclean a + incmesh result [lindex ${tolerances} ${i}] -a 1 + fit + + checkview -screenshot -2d -path ${imagedir}/${test_image}_${i}.png + checktrinfo result -tri [lindex ${ref_triangles} ${i}] -nod [lindex ${ref_nodes} ${i}] +}