mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-06-02 09:46:43 +08:00
- Added function checkprops, set default tolerance parameter to 1.0e-4 - Using "area" instead of "square". - Options "-equal\notequal" isn't used together with "-s" in blend and offset test cases. - Correct regressions/differences/improvements and CPU problem (set props tolerance to 0.1) - Corrected test cases to use checkprops proc. - Correct image difference - Updated TODOs in test cases. - Updated test cases to get correct images of result shape
57 lines
1.6 KiB
Plaintext
Executable File
57 lines
1.6 KiB
Plaintext
Executable File
puts "============"
|
|
puts "OCC9490"
|
|
puts "============"
|
|
puts ""
|
|
#######################################################################
|
|
# Increasing of tolerance in loop test for IGES
|
|
#######################################################################
|
|
|
|
set BugNumber OCC9490
|
|
|
|
set IsOk 1
|
|
set filepath [locate_data_file support_bobine.igs]
|
|
if {[catch {igesread $filepath OCC9490a *}]} {
|
|
puts "Faulty ${BugNumber} : here is reading problem"
|
|
set IsOk 0
|
|
}
|
|
|
|
file delete ${imagedir}/OCC9490tmp.igs
|
|
|
|
if {[catch {brepiges OCC9490a ${imagedir}/OCC9490tmp.igs}]} {
|
|
puts "Faulty ${BugNumber} : here is conversation to brep problem"
|
|
set IsOk 0
|
|
}
|
|
catch {exec chmod 777 ${imagedir}/OCC9490tmp.igs}
|
|
|
|
if {[catch {igesread ${imagedir}/OCC9490tmp.igs OCC9490b *}]} {
|
|
puts "Faulty ${BugNumber} : here is 2nd reading problem"
|
|
set IsOk 0
|
|
}
|
|
|
|
if { ${IsOk} == 1} {
|
|
set aTokList {= }
|
|
set Tol1 [lindex [split [tolerance OCC9490a] ${aTokList}] 2]
|
|
set Tol2 [lindex [split [tolerance OCC9490b] ${aTokList}] 2]
|
|
set percent_max 0.1
|
|
set Tolerance_percent [GetPercent ${Tol1} ${Tol2}]
|
|
puts "Tolerance_percent = ${Tolerance_percent} %"
|
|
if { ${Tolerance_percent} > ${percent_max} } {
|
|
set IsOk 0
|
|
}
|
|
|
|
checknbshapes OCC9490a -vertex 1770 -edge 1237 -wire 140 -face 123 -shell 0 -solid 0 -compsolid 0 -compound 1 -shape 3271
|
|
checkprops OCC9490a -s 36259
|
|
|
|
checknbshapes OCC9490b -vertex 1770 -edge 1237 -wire 140 -face 123 -shell 0 -solid 0 -compsolid 0 -compound 1 -shape 3271
|
|
checkprops OCC9490b -s 36259
|
|
|
|
if { ${IsOk} == 0 } {
|
|
puts "${BugNumber}: Faulty"
|
|
} else {
|
|
puts "${BugNumber}: OK"
|
|
}
|
|
}
|
|
|
|
renamevar OCC9490b result
|
|
set 2dviewer 0
|