1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00
ski 58cf74e0c0 0025945: Make stable checking of shape global properties in tests
- 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
2015-12-10 16:56:03 +03:00

33 lines
798 B
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
if [catch {mkoffset res1 f 1 4.8 } result] {
puts "Faulty OCC165 (case 1) : function MKOFFSET works wrongly"
} 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 -2.9 } result] {
puts "Faulty OCC165 (case 2) : function MKOFFSET works wrongly"
} else {
puts "OCC165 OK (case 2): function MKOFFSET works properly"
checkshape res2_1
mkplane pl2 res2_1
checkshape pl2
}
compound a res1_1 res2_1 res
checkprops res1_1 -l 1112.29
checkprops res2_1 -l 1063.91