1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-05 18:16:23 +03:00
ski a8676008f7 Adding of testing cases from subgroups 937 940 and 941 of CHL group
Splitting of subgroups bugs/modalg and bugs/moddata to optimise time of testing
Correction of end file in group v3d
Small correction of test case
2013-02-08 15:16:15 +04:00

76 lines
1.7 KiB
Plaintext
Executable File

puts "========"
puts "OCC165"
puts "Bug regression in BRepOffsetAPI_MakeOffset class (offsetting in OY direction)"
puts "========"
restore [locate_data_file offset_wire_019.brep] a
checkshape a
mkplane f a
checkshape f
set IsGood 1
if [catch {mkoffset res1 f 1 1 } result] {
puts "Faulty OCC165 (case 1) : function MKOFFSET works wrongly"
set IsGood 0
} else {
puts "OCC165 OK (case 1): function MKOFFSET works properly"
checkshape res1_1
mkplane pl1 res1_1
checkshape pl1
}
if [catch {mkoffset res2 f 1 -1 } result] {
puts "Faulty OCC165 (case 2) : function MKOFFSET works wrongly"
set IsGood 0
} else {
puts "OCC165 OK (case 2): function MKOFFSET works properly"
checkshape res2_1
mkplane pl2 res2_1
checkshape pl2
}
if {$IsGood == 1} {
compound a res1_1 res2_1 res
regexp {Mass +: +([-0-9.+eE]+)} [lprops res1_1] full len
set good_len 1088.43
set percent_max 0.1
set percent [expr abs(${len} - ${good_len}) / double(${good_len}) * 100.]
puts "good_len = ${good_len}"
puts "length = ${len}"
puts "percent = ${percent}"
if {${percent} > ${percent_max}} {
puts "Faulty OCC165 (case 3) : function MKOFFSET works wrongly"
set IsGood 0
}
regexp {Mass +: +([-0-9.+eE]+)} [lprops res2_1] full len
set good_len 1075.87
set percent_max 0.1
set percent [expr abs(${len} - ${good_len}) / double(${good_len}) * 100.]
puts "good_len = ${good_len}"
puts "length = ${len}"
puts "percent = ${percent}"
if {${percent} > ${percent_max}} {
puts "Faulty OCC165 (case 4) : function MKOFFSET works wrongly"
set IsGood 0
}
if {$IsGood == 1} {
puts "OCC165 OK"
} else {
puts "OCC165 FAULTY"
}
} else {
puts "OCC165 FAULTY"
}