1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-10 18:51:21 +03:00

Adjusting new testing cases

This commit is contained in:
mkv 2015-01-16 13:32:55 +03:00 committed by bugmaster
parent 89cc29b0b5
commit 6b0e8bd1a9
6 changed files with 9 additions and 9 deletions

View File

@ -19,15 +19,15 @@ regexp {([0-9]+) triangles} ${trinfo_s} str nbtri_s
regexp {([0-9]+) nodes} ${trinfo_s} str nbnod_s regexp {([0-9]+) nodes} ${trinfo_s} str nbnod_s
regexp {deflection ([0-9.+e-]+)} ${trinfo_s} str defl_s regexp {deflection ([0-9.+e-]+)} ${trinfo_s} str defl_s
if { ${nbtri_s} != 90 } { if { ${nbtri_s} != 99 } {
puts "Error: triangle number is bad" puts "Error: triangle number is bad"
} }
if { ${nbnod_s} != 54 } { if { ${nbnod_s} != 59 } {
puts "Error: node number is bad" puts "Error: node number is bad"
} }
set expected_defl_s 0.59663444648536101 set expected_defl_s 0.59663444648536146
set tol_abs_defl_s 1.e-3 set tol_abs_defl_s 1.e-3
set tol_rel_defl_s 0.01 set tol_rel_defl_s 0.01
checkreal "Deflection" ${defl_s} ${expected_defl_s} ${tol_abs_defl_s} ${tol_rel_defl_s} checkreal "Deflection" ${defl_s} ${expected_defl_s} ${tol_abs_defl_s} ${tol_rel_defl_s}

View File

@ -22,7 +22,7 @@ regexp {deflection ([0-9.+e-]+)} ${trinfo_s} str defl_s
set good_nbtri 2721 set good_nbtri 2721
set good_nbnod 1405 set good_nbnod 1405
set good_defl 0.082010129769776202 set good_defl 0.048938765264496524
set good_percent 5 set good_percent 5

View File

@ -19,7 +19,7 @@ puts "Poles=${Poles}"
puts "KnotsPoles=${KnotsPoles}" puts "KnotsPoles=${KnotsPoles}"
puts "" puts ""
set tol_abs 1.e-7 set tol_abs 1.e-4
set tol_rel 0.01 set tol_rel 0.01
set V_i 0 set V_i 0
@ -42,7 +42,7 @@ for {set i 1} {${i} <= ${Poles}} {incr i} {
} }
if { ${i} > 1 } { if { ${i} > 1 } {
#puts "i=${i} U_i=${U_i} V_i=${V_i} V_i_1=${V_i_1}" #puts "i=${i} U_i=${U_i} V_i=${V_i} V_i_1=${V_i_1}"
if { ${V_i_1} >= ${V_i} } { if { ${V_i_1} - ${V_i} > ${tol_abs} } {
puts "Error: Bad value of V in string: ${i} :${U_i}, ${V_i}" puts "Error: Bad value of V in string: ${i} :${U_i}, ${V_i}"
} }
} }

View File

@ -22,7 +22,7 @@ set info [trinfo result]
regexp { +([-0-9.+eE]+) +triangles} $info full tri regexp { +([-0-9.+eE]+) +triangles} $info full tri
regexp { +([-0-9.+eE]+) +nodes} $info full nod regexp { +([-0-9.+eE]+) +nodes} $info full nod
if { $tri != 84 || $nod != 84 } { if { $tri != 92 || $nod != 92 } {
puts "Faulty OCC364: here is shading problem" puts "Faulty OCC364: here is shading problem"
} else { } else {
puts "Shading of OCC364 is OK" puts "Shading of OCC364 is OK"

View File

@ -3,5 +3,5 @@ if { [string compare $command "incmesh"] == 0 ||
[string compare $command "mesh"] == 0 || [string compare $command "mesh"] == 0 ||
[string compare $command "incmesh_parallel"] == 0 } { [string compare $command "incmesh_parallel"] == 0 } {
set bug_area "OCC25519" set bug_area "OCC25519"
set rel_tol 1.3654 set rel_tol 1.3485
} }

View File

@ -1,5 +1,5 @@
set TheFileName shading_102.brep set TheFileName shading_102.brep
if { [string compare $command "shading"] == 0 } { if { [string compare $command "shading"] == 0 } {
set bug_area "OCC22687" set bug_area "OCC22687"
set rel_tol 1.7 set rel_tol 1.692
} }