9aa684ed |
1 | puts "TODO ?OCC25913 ALL: Faulty shapes in variables faulty_1 to faulty_" |
a4eba920 |
2 | puts "TODO OCC25913 ALL: Error : is WRONG because number of" |
9aa684ed |
3 | puts "TODO OCC25913 ALL: Error : The square of result shape is" |
a8676008 |
4 | |
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_cone_Ideas.igs] a2 |
28 | |
29 | DT_ShapeDivide con2 a2 |
30 | |
31 | # join type Arc |
32 | puts "***** offsetting with join type Arc" |
33 | puts " cone_Ideas + 5" |
34 | |
35 | if [catch { myoffset result con2 5 0 } catch_result] { |
36 | puts "${BugNumber}: Faulty (1)" |
37 | } else { |
38 | |
39 | set square 3542.24 |
a4eba920 |
40 | checknbshapes result -vertex 60 -edge 90 -wire 42 -face 40 -shell 5 -solid 5 -compsolid 0 -compound 1 -shape 243 |
a8676008 |
41 | } |
42 | |
43 | set 2dviewer 0 |