0026855: Draw commands to debug Boolean Operations Algorithm
[occt.git] / tests / bugs / modalg_4 / bug8842_12
1 puts "TODO OCC24156 MacOS: \\*\\* Exception \\*\\*.*"
2 puts "TODO OCC24156 MacOS: An exception was caught"
3 puts "TODO OCC24156 MacOS: OCC8842: Faulty"
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_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
39 set square 57019.9
40 checknbshapes result -vertex 4 -edge 6 -wire 4 -face 4 -shell 1 -solid 0 -compsolid 0 -compound 0 -shape 19
41 }
42
43 set 2dviewer 0
44