0026938: Boolean operations fail between two ellipsoids
[occt.git] / tests / bugs / modalg_6 / bug26498
CommitLineData
7642e2d0 1puts "============"
2puts "OCC26498"
3puts "============"
4puts ""
5#######################################################################
6# BRepOffsetAPI_MakeOffset causes segmentation fault
7#######################################################################
8
9polyline 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
11smallview
12display w
13fit
14
15if [catch { openoffset r w 1 -0.2 i } ] {
16 puts "Error : openoffset is wrong"
17} else {
18 renamevar r_1 result
19
58cf74e0 20 checkprops result -l 0.272485
21 checksection result
7642e2d0 22
23 set nbshapes_expected "
24Number 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
5747059b 43checkview -screenshot -2d -path ${imagedir}/${test_image}.png