From aff123698bd34193c5647fdb4bfe70d6fe3e4336 Mon Sep 17 00:00:00 2001 From: oan Date: Fri, 19 Feb 2016 15:10:18 +0300 Subject: [PATCH] 0024594: Missing surfaces from STL output (second example) Added test case Small corrections of test case --- tests/bugs/mesh/bug24594 | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 tests/bugs/mesh/bug24594 diff --git a/tests/bugs/mesh/bug24594 b/tests/bugs/mesh/bug24594 new file mode 100644 index 0000000000..e27fcfdd33 --- /dev/null +++ b/tests/bugs/mesh/bug24594 @@ -0,0 +1,32 @@ +puts "========" +puts "OCC25045" +puts "========" +puts "" +################################# +# STEP Import fails to find all surfaces +################################# + +pload XDE + +set refnbfaces 22 + +stepread [locate_data_file bug24594_284965.stp] a * +renamevar a_1 result + +#1 +checkview -display result -3d -path ${imagedir}/${test_image}.png + +#2 +set log1 [explode result f] +set nbfaces [llength $log1] + +#3 +set log2 [tricheck result] + +if { $nbfaces != $refnbfaces } { + puts "Error : Shape restored incorrectly - number of faces is different than expected value ($nbfaces != $refnbfaces)" +} + +if { [llength $log2] != 0 } { + puts "Error : Some faces has failed to mesh" +} \ No newline at end of file -- 2.39.5