0027557: Unstable HLR tests
[occt.git] / tests / bugs / modalg_6 / bug26498
1 puts "============"
2 puts "OCC26498"
3 puts "============"
4 puts ""
5 #######################################################################
6 # BRepOffsetAPI_MakeOffset causes segmentation fault
7 #######################################################################
8
9 polyline w 0 0 0 0.2 0 0 0.2 0.2 0 0.4 0.2 0 0.4 0.4 0 -0.06 0.57 0
10
11 smallview
12 display w
13 fit
14
15 if [catch { openoffset r w 1 -0.2 i } ] {
16   puts "Error : openoffset is wrong"
17 } else {
18   renamevar r_1 result
19
20   checkprops result -l 0.272485 
21   checksection result
22
23   set nbshapes_expected "
24 Number of shapes in shape
25  VERTEX    : 3
26  EDGE      : 2
27  WIRE      : 1
28  FACE      : 0
29  SHELL     : 0
30  SOLID     : 0
31  COMPSOLID : 0
32  COMPOUND  : 0
33  SHAPE     : 6
34 "
35   checknbshapes result -ref ${nbshapes_expected} -t -m "Offset"
36
37   checkshape result
38
39   display result
40   fit
41 }
42
43 checkview -screenshot -2d -path ${imagedir}/${test_image}.png