0027557: Unstable HLR tests
[occt.git] / tests / bugs / modalg_6 / bug26296_4
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_v6_linearc_face.brep] a
10
11 smallview
12 display a
13 fit
14
15 if [catch { mkoffset resoffset a 1 -5. i } ] {
16   puts "Error : mkoffset is wrong"
17 } else {
18   renamevar resoffset_1 result
19
20   checkprops result -l 443.273 
21 checkshape result 
22 checksection result
23
24   set nbshapes_expected "
25 Number of shapes in shape
26  VERTEX    : 5
27  EDGE      : 5
28  WIRE      : 1
29  FACE      : 0
30  SHELL     : 0
31  SOLID     : 0
32  COMPSOLID : 0
33  COMPOUND  : 0
34  SHAPE     : 11
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