1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00
occt/tests/bugs/modalg_5/bug24029
pkv 63def8e679 0024933: Inconsistent results of self-interferences checker in SALOME and DRAW Applications.
class BOPAlgo_CheckerSI
   - methods:
void BOPAlgo_CheckerSI::Perform()

class BOPAlgo_ArgumentAnalyzer
   - methods:
void BOPAlgo_ArgumentAnalyzer::TestSelfInterferences()

The changes have been done to provide the consistence
between results in SALOME Application and DRAW Application

The sytax of the command "bopcheck" has been changed:
bopcheck Shape [level of check: 0 - 9] [-t -s]
The options:
 -t - display elapsed CPU time
 -s - run in serial (non-parallel) mode. The default mode is parallel.

Modified test cases bugs/modalg_5/bug24029 and bugs/modalg_5/bug24764 according to changed output format of the "bopcheck" command.
2014-05-22 17:25:13 +04:00

34 lines
923 B
Plaintext

puts "============"
puts "OCC24029"
puts "============"
puts ""
############################################################################################
# Add a flag to bopcheck command to provide possibility to disable Face/Face intersection
############################################################################################
box b1 10 10 10
box b2 5 5 5 10 10 10
compound b1 b2 c
set info1 [bopcheck c]
set info2 [bopcheck c 4]
set info3 [bopcheck c 3]
if { [regexp "x35" $info1] != 1 } {
puts "Error : bopcheck c works wrong"
} else {
puts "OK: bopcheck c works properly"
}
if { [regexp "x13" $info2] != 1 || [regexp "x39" $info2] != 1 } {
puts "Error : bopcheck c 4 works wrong"
} else {
puts "OK: bopcheck c 4 works properly"
}
if { [regexp "This shape seems to be OK" $info3] != 1 } {
puts "Error : bopcheck c 3 works wrong"
} else {
puts "OK: bopcheck c 3 works properly"
}