1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
puts "TODO ?OCC23748 ALL: An exception was caught"
puts "TODO ?OCC23748 ALL: \\*\\* Exception "
puts "TODO ?OCC23748 ALL: Error: Offset is not done."
puts "TODO ?OCC23748 ALL: Faulty OCC745"
puts "TODO ?OCC12345 ALL: Exception: result is not a topological shape!!!"
puts "TODO ?OCC12345 ALL: TEST INCOMPLETE"
pload QAcommands
puts "========"
puts "OCC745"
puts "========"
puts ""
###########################################
# Exception Standard_NullValue while performing the offset:
###########################################
restore [locate_data_file OCC745_pocket1.brep] a
checkshape a
if { [catch { mkoffset result a 1 -10 } status] } {
puts "Faulty OCC745"
} else {
renamevar result_1 result
set nb_info [nbshapes result]
set ve 0
regexp {VERTEX +: +([-0-9.+eE]+)} $nb_info full ve
puts [format "Result shape result contains %s vertexes" $ve]
if { $ve == 0 } {
puts [format "Faulty : Result shape is NULL shape"]
} else {
regexp {WIRE +: +([-0-9.+eE]+)} $nb_info full wi
if {$wi > 1 } {
set ll [explode result w]
set num [llength $ll]
puts [format "Faulty : Result shape result is COMPOUND and contains %s wires" $num]
foreach {k} $ll {
checkshape $k
regexp {nb alone Vertices : ([-0-9.+eE]+)} [checksection $k] full cs
if { $cs != 0 } {
puts [format "Faulty : Result shape is UNclosed wire !!! " $k]
} else {
puts [format "OK: Result shape is CLOSED wire !!! "]
}
}
}
}
}
set length 0
set 2dviewer 0
|