0e94a94e |
1 | puts "========" |
2 | puts "OCC165" |
3 | puts "Bug regression in BRepOffsetAPI_MakeOffset class (offsetting in OY direction)" |
4 | puts "========" |
5 | |
6 | restore [locate_data_file offset_wire_019.brep] a |
352ffd73 |
7 | checkshape a |
0e94a94e |
8 | |
9 | mkplane f a |
352ffd73 |
10 | checkshape f |
0e94a94e |
11 | |
0e94a94e |
12 | if [catch {mkoffset res1 f 1 1 } result] { |
13 | puts "Faulty OCC165 (case 1) : function MKOFFSET works wrongly" |
0e94a94e |
14 | } else { |
15 | puts "OCC165 OK (case 1): function MKOFFSET works properly" |
16 | checkshape res1_1 |
17 | mkplane pl1 res1_1 |
18 | checkshape pl1 |
19 | } |
20 | |
21 | if [catch {mkoffset res2 f 1 -1 } result] { |
22 | puts "Faulty OCC165 (case 2) : function MKOFFSET works wrongly" |
0e94a94e |
23 | } else { |
24 | puts "OCC165 OK (case 2): function MKOFFSET works properly" |
25 | checkshape res2_1 |
26 | mkplane pl2 res2_1 |
27 | checkshape pl2 |
28 | } |
29 | |
58cf74e0 |
30 | compound a res1_1 res2_1 res |
31 | checkprops res1_1 -l 1088.43 |
32 | checkprops res2_1 -l 1075.87 |