3cdfdc9a |
1 | puts "TODO OCC24156 MacOS: \\*\\* Exception \\*\\*.*" |
2 | puts "TODO OCC24156 MacOS: An exception was caught" |
3 | puts "TODO OCC24156 MacOS: OCC8842: Faulty" |
4 | |
a8676008 |
5 | puts "============" |
6 | puts "OCC8842" |
7 | puts "============" |
8 | puts "" |
9 | ####################################################################### |
10 | # Errors in Offset Shape algorithm working with bspline and surface of revolution |
11 | ####################################################################### |
12 | |
13 | set BugNumber OCC8842 |
14 | |
15 | if {[info commands testreadiges] == ""} {pload XSDRAW} |
16 | |
17 | proc myoffset {result sh val tan} { |
18 | if {$tan == 1} { |
19 | offsetparameter 1e-7 p i |
20 | } else { |
21 | offsetparameter 1e-7 p a |
22 | } |
23 | uplevel offsetload $sh $val |
24 | uplevel offsetperform $result |
25 | } |
26 | |
27 | testreadiges [locate_data_file OCC8842_cylinder_CATIA.igs] a3 |
28 | |
29 | sewing cyl1 a3 |
30 | |
31 | # join type Intersection |
32 | puts "***** offsetting with join type Intersection" |
33 | puts " cylinder_CATIA - 5" |
34 | |
35 | if [catch { myoffset result cyl1 -5 1 } catch_result] { |
36 | puts "${BugNumber}: Faulty (1)" |
37 | } else { |
38 | |
58cf74e0 |
39 | checkprops result -s 57019.9 |
40 | checkshape result |
a4eba920 |
41 | checknbshapes result -vertex 4 -edge 6 -wire 4 -face 4 -shell 1 -solid 0 -compsolid 0 -compound 0 -shape 19 |
a8676008 |
42 | } |
43 | |
5747059b |
44 | checkview -display result -2d -path ${imagedir}/${test_image}.png |
a8676008 |
45 | |