mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
17 lines
548 B
Plaintext
17 lines
548 B
Plaintext
if { [info exists rel_tol] } {
|
|
puts "\nChecking triangulation area (triarea command)..."
|
|
set rel_err [expr abs([CheckTriArea result $area_eps])]
|
|
if { $rel_err > $rel_tol } {
|
|
puts "Error : area by triangles differs from the actual area by $rel_err %"
|
|
} else {
|
|
if { $rel_tol > 1 && $rel_tol < 100 } {
|
|
puts "Error: Improvement: The current area difference is $rel_err instead of $rel_tol"
|
|
}
|
|
}
|
|
}
|
|
|
|
checkview -display result -2d -path ${imagedir}/${test_image}.png
|
|
|
|
# to end a test script
|
|
puts "TEST COMPLETED"
|