0027664: Incomplete intersection curve from the attached shapes
[occt.git] / tests / bugs / modalg_6 / bug26296_5
1 puts "============"
2 puts "OCC26296"
3 puts "============"
4 puts ""
5 #######################################################################
6 # Errors in BRepOffsetAPI_MakeOffset: failure because of wrong direction of bisector.
7 #######################################################################
8
9 restore [locate_data_file bug26296_linesarc.brep] a
10
11 smallview
12 display a
13 fit
14
15 if [catch { openoffset resoffset a 1 6. i } ] {
16   puts "Error : openoffset is wrong"
17 } else {
18   renamevar resoffset_1 result
19
20   checkprops result -l 242.849 
21 checkshape result 
22 checksection result
23
24   set nbshapes_expected "
25 Number of shapes in shape
26  VERTEX    : 4
27  EDGE      : 3
28  WIRE      : 1
29  FACE      : 0
30  SHELL     : 0
31  SOLID     : 0
32  COMPSOLID : 0
33  COMPOUND  : 0
34  SHAPE     : 8
35 "
36   checknbshapes result -ref ${nbshapes_expected} -t -m "Offset"
37
38   display result
39   fit
40 }
41
42 checkview -screenshot -2d -path ${imagedir}/${test_image}.png