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