mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
Adding procedures checkcolor and checkpoint. Modified test cases which are used QAGetPixelColor or QAAISGetPixelColor2d Allow using command QAAISGetPixelColor2d on WNT Rename test case tests/bugs/vis/bug19619 to pro19619 Added test cases to modalg and moddata
44 lines
1.3 KiB
Plaintext
Executable File
44 lines
1.3 KiB
Plaintext
Executable File
|
|
puts "========"
|
|
puts "OCC745"
|
|
puts "========"
|
|
puts ""
|
|
###################################################
|
|
## Exception thrown: Standard_ConstructionError: Offset wire is not closed:
|
|
###################################################
|
|
|
|
restore [locate_data_file BUC60830-face2.brep] f
|
|
puts [checkshape f]
|
|
|
|
if { [catch { mkoffset result f 45 -0.042225 } 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 {
|
|
puts [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 72.1851
|
|
set 2dviewer 0
|
|
|