mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
- Added function checkprops, set default tolerance parameter to 1.0e-4 - Using "area" instead of "square". - Options "-equal\notequal" isn't used together with "-s" in blend and offset test cases. - Correct regressions/differences/improvements and CPU problem (set props tolerance to 0.1) - Corrected test cases to use checkprops proc. - Correct image difference - Updated TODOs in test cases. - Updated test cases to get correct images of result shape
67 lines
1.2 KiB
Plaintext
Executable File
67 lines
1.2 KiB
Plaintext
Executable File
puts "============"
|
|
puts "OCC25742"
|
|
puts "============"
|
|
puts ""
|
|
###############################
|
|
## A partition of 2 shapes stresses a performance issue
|
|
###############################
|
|
|
|
if { [regexp {Debug mode} [dversion]] } {
|
|
if { [regexp {Windows} [dversion]] } {
|
|
set max_time 150
|
|
} else {
|
|
set max_time 100
|
|
}
|
|
} else {
|
|
if { [regexp {Windows} [dversion]] } {
|
|
set max_time 30
|
|
} else {
|
|
set max_time 20
|
|
}
|
|
}
|
|
|
|
restore [locate_data_file bug25742_pipeFiss.brep] b1
|
|
restore [locate_data_file bug25742_shellFiss.brep] b2
|
|
|
|
bclearobjects
|
|
bcleartools
|
|
baddobjects b1
|
|
baddtools b2
|
|
|
|
dchrono h reset
|
|
dchrono h start
|
|
|
|
bfillds
|
|
bbuild result
|
|
|
|
dchrono h stop
|
|
set q [dchrono h show]
|
|
|
|
regexp {CPU user time: ([-0-9.+eE]+) seconds} $q full z
|
|
puts "$z"
|
|
|
|
if { $z > ${max_time} } {
|
|
puts "Elapsed time of bbuild is more than ${max_time} seconds - Error"
|
|
} else {
|
|
puts "Elapsed time of bbuild is less than ${max_time} seconds - OK"
|
|
}
|
|
|
|
checkprops result -s 280627
|
|
checkshape result
|
|
|
|
set nbshapes_expected "
|
|
Number of shapes in shape
|
|
VERTEX : 14
|
|
EDGE : 24
|
|
WIRE : 11
|
|
FACE : 10
|
|
SHELL : 1
|
|
SOLID : 0
|
|
COMPSOLID : 0
|
|
COMPOUND : 1
|
|
SHAPE : 61
|
|
"
|
|
checknbshapes result -ref "${nbshapes_expected}" -t -m "Partition of 2 shapes"
|
|
|
|
set 3dviewer 1
|