From 87036bbb70b936fad8ab644863e6b6dbd7c62605 Mon Sep 17 00:00:00 2001 From: oan Date: Fri, 16 Nov 2018 14:03:51 +0300 Subject: [PATCH] 0028719: Mesh - Display issue for special model Clean existing triangulation before meshing. --- tests/bugs/mesh/bug28719 | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/tests/bugs/mesh/bug28719 b/tests/bugs/mesh/bug28719 index 7a449489fc..599ca0dab9 100644 --- a/tests/bugs/mesh/bug28719 +++ b/tests/bugs/mesh/bug28719 @@ -1,5 +1,3 @@ -puts "TODO OCC28719 ALL: ERROR: OCC28719 is reproduced." - puts "========" puts "OCC28719" puts "========" @@ -9,17 +7,18 @@ puts "" ################################### restore [locate_data_file bug28719_display_issue.brep] result +tclean result vinit vdisplay result vsetdispmode result 1 vfit -if {[string trim [vreadpixel 255 169 name]] == "GRAY75 1"} { - puts "ERROR: OCC28719 is reproduced. Nontriangulated faces have been detected." -} -if {[string trim [vreadpixel 133 241 name]] == "GRAY75 1"} { +set log [tricheck result] +if { [llength $log] != 0 } { puts "ERROR: OCC28719 is reproduced. Nontriangulated faces have been detected." +} else { + puts "Mesh is OK" } checkview -screenshot -3d -path ${imagedir}/${test_image}.png