1 puts "TODO OCC12345 ALL: An exception was caught"
2 puts "TODO OCC12345 ALL: \\*\\* Exception \\*\\*.*"
3 puts "TODO OCC12345 ALL: OCC165 Faulty"
6 puts "Bug regression in BRepOffsetAPI_MakeOffset class (offsetting in OY direction)"
9 restore [locate_data_file offset_wire_019.brep] a
16 if [catch {mkoffset res1 f 1 4.8 } result] {
19 puts "OCC165 OK (case 1): function MKOFFSET works properly"
20 puts [checkshape res1_1]
25 if [catch {mkoffset res2 f 1 -2.9 } result] {
28 puts "OCC165 OK (case 2): function MKOFFSET works properly"
29 puts [checkshape res2_1]
35 compound a res1_1 res2_1 res
37 regexp {Mass +: +([-0-9.+eE]+)} [lprops res1_1] full len
41 set percent [expr abs(${len} - ${good_len}) / double(${good_len}) * 100.]
43 puts "good_len = ${good_len}"
44 puts "length = ${len}"
45 puts "percent = ${percent}"
47 if {${percent} > ${percent_max}} {
51 regexp {Mass +: +([-0-9.+eE]+)} [lprops res2_1] full len
55 set percent [expr abs(${len} - ${good_len}) / double(${good_len}) * 100.]
57 puts "good_len = ${good_len}"
58 puts "length = ${len}"
59 puts "percent = ${percent}"
61 if {${percent} > ${percent_max}} {