1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00
Files
occt/tests/bugs/modalg/bug755_1
apn f1aa2b6272 Adding new testing cases for chl grid
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
2012-12-14 16:56:11 +04:00

35 lines
755 B
Plaintext
Executable File

puts "========"
puts "OCC755"
puts "SAM1607"
puts "(case 1)"
puts "========"
puts ""
####################################################################
##Result of cut of capteur2 from capteur1 is a solid. It must be a compound, as it consists of 2 bodies.
####################################################################
restore [locate_data_file OCC755_1.brep] a1
puts [checkshape a1]
restore [locate_data_file OCC755_2.brep] a2
puts [checkshape a2]
bcut result a1 a2
set wt_is [whatis result]
set lth [llength $wt_is]
if {$lth < 5} {
puts "Faulty OCC755 (case 1)"
} else {
if {[regexp {COMPOUND} $wt_is] == 1} {
puts "OCC755 OK (case 2)"
} else {
puts "Faulty OCC755 (case 2)"
}
}
set square 1.57358e+06
set 2dviewer 0