0e94a94e |
1 | puts "========" |
2 | puts "OCC165" |
3 | puts "========" |
4 | |
5 | restore [locate_data_file OCC165-2.brep] f |
352ffd73 |
6 | checkshape f |
0e94a94e |
7 | |
0e94a94e |
8 | if [catch {mkoffset res1 f 3 10 } result] { |
9 | puts "Faulty OCC165 (case 1) : function MKOFFSET works wrongly" |
0e94a94e |
10 | } else { |
58cf74e0 |
11 | puts "OCC165 OK (case 1): function MKOFFSET works properly" |
0e94a94e |
12 | mkplane pl1_1 res1_1 |
352ffd73 |
13 | checkshape pl1_1 |
0e94a94e |
14 | mkplane pl1_2 res1_2 |
352ffd73 |
15 | checkshape pl1_2 |
0e94a94e |
16 | mkplane pl1_3 res1_3 |
352ffd73 |
17 | checkshape pl1_3 |
0e94a94e |
18 | } |
19 | |
20 | if [catch {mkoffset res2 f 3 -10 } result] { |
21 | puts "Faulty OCC165 (case 2) : function MKOFFSET works wrongly" |
0e94a94e |
22 | } else { |
58cf74e0 |
23 | puts "OCC165 OK (case 2): function MKOFFSET works properly" |
0e94a94e |
24 | mkplane pl2_1 res2_1 |
352ffd73 |
25 | checkshape pl2_1 |
0e94a94e |
26 | mkplane pl2_2 res2_2 |
352ffd73 |
27 | checkshape pl2_2 |
0e94a94e |
28 | mkplane pl2_3 res2_3 |
352ffd73 |
29 | checkshape pl2_3 |
0e94a94e |
30 | } |
31 | |
58cf74e0 |
32 | compound f res1_1 res1_2 res1_3 res2_1 res2_2 res2_3 res |
33 | checkprops res1_1 -l 462.832 |
34 | checkprops res1_2 -l 525.664 |
35 | checkprops res1_3 -l 588.496 |
36 | checkprops res2_1 -l 320 |
37 | checkprops res2_2 -l 240 |
38 | checkprops res2_3 -l 160 |