1 puts "TODO OCC12345 ALL: Error : is WRONG because number of "
2 puts "TODO OCC12345 ALL: OCC9531: Faulty"
8 #######################################################################
9 # Regression after writing-reading operation
10 #######################################################################
15 set filepath [locate_data_file 919-001-T02-04-CP-VL.igs]
16 if {[catch {igesread $filepath OCC9531a *}]} {
17 puts "Faulty ${BugNumber} : here is reading problem"
21 file delete ${imagedir}/OCC9531tmp.igs
23 if {[catch {brepiges OCC9531a ${imagedir}/OCC9531tmp.igs}]} {
24 puts "Faulty ${BugNumber} : here is conversation to brep problem"
27 catch {exec chmod 777 ${imagedir}/OCC9531tmp.igs}
29 if {[catch {igesread ${imagedir}/OCC9531tmp.igs OCC9531b *}]} {
30 puts "Faulty ${BugNumber} : here is 2nd reading problem"
36 set Tol1 [lindex [split [tolerance OCC9531a] ${aTokList}] 2]
37 set Tol2 [lindex [split [tolerance OCC9531b] ${aTokList}] 2]
39 set Tolerance_percent [GetPercent ${Tol1} ${Tol2}]
40 puts "Tolerance_percent = ${Tolerance_percent} %"
41 if { ${Tolerance_percent} > ${percent_max} } {
45 set good_square 5236.89
47 checknbshapes OCC9531a -vertex 5748 -edge 5680 -wire 915 -face 899 -shell 0 -solid 0 -compsolid 0 -compound 1 -shape 13243
49 regexp {Mass +: +([-0-9.+eE]+)} [sprops OCC9531a] full sq1
51 if {$sq1 != $good_square} {
55 checknbshapes OCC9531b -vertex 5748 -edge 5680 -wire 915 -face 899 -shell 0 -solid 0 -compsolid 0 -compound 1 -shape 13243
57 regexp {Mass +: +([-0-9.+eE]+)} [sprops OCC9531b] full sq2
58 if {$sq2 != $good_square} {
63 puts "${BugNumber}: Faulty"
65 puts "${BugNumber}: OK"
69 renamevar OCC9531b result