0025138: SIGSEGV when sweeping along helix
[occt.git] / tests / bugs / modalg_4 / bug8842_10
CommitLineData
a8676008 1puts "============"
2puts "OCC8842"
3puts "============"
4puts ""
5#######################################################################
6# Errors in Offset Shape algorithm working with bspline and surface of revolution
7#######################################################################
8
9set BugNumber OCC8842
10
11if {[info commands testreadiges] == ""} {pload XSDRAW}
12
13proc 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
23testreadiges [locate_data_file OCC8842_cylinder_CATIA.igs] a3
24
25sewing cyl1 a3
26
27# join type Arc
28puts "***** offsetting with join type Arc"
29puts " cylinder_CATIA - 5"
30
31if [catch { myoffset result cyl1 -5 0 } catch_result] {
32 puts "${BugNumber}: Faulty (1)"
33} else {
34
58cf74e0 35checkprops result -s 55514.4
36checkshape result
a4eba920 37checknbshapes result -vertex 8 -edge 14 -wire 8 -face 8 -shell 1 -solid 0 -compsolid 0 -compound 0 -shape 39}
a8676008 38
5747059b 39checkview -display result -2d -path ${imagedir}/${test_image}.png