1867dc32 |
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_wrong1_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 | |
58cf74e0 |
20 | checkprops result -l 467.541 |
21 | checkshape result |
22 | checksection result |
1867dc32 |
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 | |
5747059b |
42 | checkview -screenshot -2d -path ${imagedir}/${test_image}.png |