1 puts "TODO OCC12345 ALL: An exception was caught"
2 puts "TODO OCC12345 ALL: Exception"
3 puts "TODO OCC12345 ALL: Error : The command can not be build."
9 ###################################
10 ## BRepOffsetAPI_MakeOffset fails on given wires
11 ###################################
12 puts " This part - LIMITATION for existed algorithms"
13 ###################################
15 restore [locate_data_file OCC829_w1.brep] a
19 if { [catch { mkoffset result a_1 1 5 } status] } {
20 puts "Faulty : An exception was caught"
22 renamevar result_1 result
23 set nb_info [nbshapes result]
24 regexp {VERTEX +: +([-0-9.+eE]+)} $nb_info full ve
25 puts [format "Result shape result contains %s vertexes" $ve]
27 puts [format "Faulty : Result shape is NULL shape"]
29 regexp {WIRE +: +([-0-9.+eE]+)} $nb_info full wi
31 set ll [explode result w]
33 puts [format "Faulty : Result shape result is COMPOUND and contains %s wires" $num]
36 regexp {nb alone Vertices : ([-0-9.+eE]+)} [checksection $k] full cs
38 puts [format "Faulty : Result shape is UNclosed wire !!! " $k]
40 puts [format "OK: Result shape is CLOSED wire !!! "]