1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-09 18:50:54 +03:00
occt/tests/bugs/modalg_2/bug23008
emv b1682e23b2 0026855: Draw commands to debug Boolean Operations Algorithm
The commands to debug BOA.
These commands should serve only debug purposes and should not be used in tests.

Removing old implementation of the duplicated bopnews command.
2015-11-12 11:23:31 +03:00

37 lines
818 B
Plaintext
Executable File

puts "================"
puts "OCC23008"
puts "================"
puts ""
######################################################################################
# Too many intersection vertices between line and cylinder
######################################################################################
set BugNumber OCC23008
restore [locate_data_file bug23008_ez15] b1
restore [locate_data_file bug23008_fz37] b2
bclearobjects; bcleartools
baddobjects b1; baddtools b2
bfillds
set info [ bopnews v ]
for {set i 0} {$i <= 100} {incr i} {
set word [lsearch $info z$i]
if {$word == -1} {
lappend check_z 0
} else {
lappend check_z 1
}
}
# Resume
puts ""
set result [lsearch $check_z 1]
if { ${result} == -1 } {
puts "OK ${BugNumber}"
} else {
puts "Faulty ${BugNumber}"
}
set 3dviewer 0