1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
occt/tests/bugs/modalg_4/bug745_7
ski 5747059b21 0026833: Create command checkview containing all viewer types
Created command checkview for displaying shapes.
2016-02-05 11:14:37 +03:00

48 lines
1.6 KiB
Plaintext
Executable File

puts "TODO OCC12345 ALL: Faulty : Result shape is NULL shape"
puts "TODO OCC12345 ALL: Error : The command is not valid. The length is"
puts "========"
puts "OCC745"
puts "========"
puts ""
######################################################
## Exception thrown: Standard_ConstructionError: Offset wire is not closed:
######################################################
source [locate_data_file OCC745_cont1.dat]
checkshape pp
if { [catch { mkoffset result pp 1 -10 } status] } {
puts "Faulty OCC745"
} else {
renamevar result_1 result
set nb_info [nbshapes result]
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 !!! "]
}
}
}
}
}
checkprops result -l 0
checkshape result
checksection result
checkview -display result -2d -path ${imagedir}/${test_image}.png