From: oan Date: Fri, 16 Nov 2018 11:03:51 +0000 (+0300) Subject: 0028719: Mesh - Display issue for special model X-Git-Tag: V7_4_0_beta~300 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=87036bbb70b936fad8ab644863e6b6dbd7c62605;p=occt-copy.git 0028719: Mesh - Display issue for special model Clean existing triangulation before meshing. --- 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