1 if { [isdraw result] } {
2 #check if result is valid
3 set ch [checkshape result]
6 if { [string compare $ch "This shape seems to be valid"] == 0 } {
7 #check if tolerance is less 1.
9 if { [regexp {Face +:.+Max +([-0-9.+eE]+)} [maxtolerance result] full tol] == 0 } {
10 #Avoiding maxtolerance bug on Windows
11 if { [array get Draw_Groups "Shape Healing"] == "" } {
14 regexp {Tolerance +MAX=([-0-9.+eE]+)} [tolerance result] full tol
17 puts "Error: The tolerance of the resulting shape is too big ($tol)."
21 checkview -display result -2d -path ${imagedir}/${test_image}.png
23 puts "Error : The skin cannot be built."
26 # to end a test script