c19dd45e |
1 | puts "============" |
2 | puts "OCC25298" |
3 | puts "============" |
4 | puts "" |
5 | ####################################################################### |
6 | # New option of BRepOffsetAPI_MakeOffset algorithm: processing of sharp corners in mode GeomAbs_Intersection |
7 | ####################################################################### |
8 | |
9 | polyline pp 0 0 0 10 0 0 10 10 0 6 10 0 6 15 0 4 15 0 4 10 0 0 10 0 0 0 0 |
10 | |
11 | smallview |
12 | display pp |
13 | fit |
14 | |
15 | if [catch { mkoffset resoffset pp 1 -0.2 i } ] { |
16 | puts "Error : mkoffset is wrong" |
17 | } else { |
18 | renamevar resoffset_1 result |
19 | |
58cf74e0 |
20 | checkprops result -l 48.4 |
21 | checkshape result |
22 | checksection result |
c19dd45e |
23 | |
a4eba920 |
24 | checknbshapes result -vertex 8 -edge 8 -wire 1 -face 0 -shell 0 -solid 0 -compsolid 0 -compound 0 -shape 17 |
c19dd45e |
25 | display result |
26 | fit |
27 | } |
28 | |
5747059b |
29 | checkview -screenshot -2d -path ${imagedir}/${test_image}.png |