6 #######################################################
7 ## There are several cases where the offset algo works wrong for various reasons
8 ## for wires containing only linear segments and arcs of circle.
9 #######################################################
11 restore [locate_data_file OCC745_1.brep] a
14 if { [catch { mkoffset result a 1 -10 } status] } {
15 puts "Faulty : an exception was caught"
17 renamevar result_1 result
18 set nb_info [nbshapes result]
19 regexp {VERTEX +: +([-0-9.+eE]+)} $nb_info full ve
20 puts [format "Result shape result contains %s vertexes" $ve]
22 puts [format "Faulty : Result shape is NULL shape"]
24 regexp {WIRE +: +([-0-9.+eE]+)} $nb_info full wi
26 set ll [explode result w]
28 puts [format "Faulty : Result shape result is COMPOUND and contains %s wires" $num]
31 regexp {nb alone Vertices : ([-0-9.+eE]+)} [checksection $k] full cs
33 puts [format "Faulty : Result shape is UNclosed wire !!! " $k]
35 puts [format "OK: Result shape is CLOSED wire !!! "]