mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-05-01 10:26:12 +03:00
1. Develop special sewing algorithm. 2. DRAW-command "fastsewing" has been created (see help for detail information). 3. BRepLib::EnsureNormalConsistency() method has been added (see help for detail information). 4. DRAW-command correctnormals has been created (see help for detail information). Test cases for this issue. Correction of elapsed time in test-cases
50 lines
948 B
Plaintext
50 lines
948 B
Plaintext
if { [regexp {Debug mode} [dversion]] } {
|
|
if { [regexp {Windows} [dversion]] } {
|
|
set max_time 9
|
|
} else {
|
|
set max_time 9
|
|
}
|
|
} else {
|
|
if { [regexp {Windows} [dversion]] } {
|
|
set max_time 3
|
|
} else {
|
|
set max_time 3
|
|
}
|
|
}
|
|
|
|
restore [locate_data_file 5000-16.brep] a
|
|
|
|
dchrono ch reset
|
|
dchrono ch start
|
|
puts [fastsewing result -tol 2.0e-5 a]
|
|
dchrono ch stop
|
|
|
|
set q [dchrono ch show]
|
|
|
|
regexp {CPU user time: ([-0-9.+eE]+) seconds} $q full z
|
|
puts "$z"
|
|
|
|
if { $z > ${max_time} } {
|
|
puts "Elapsed time is more than ${max_time} seconds - Error"
|
|
} else {
|
|
puts "Elapsed time is less than ${max_time} seconds - OK"
|
|
}
|
|
|
|
donly result
|
|
checkshape result
|
|
|
|
set nbshapes_expected "
|
|
Number of shapes in shape
|
|
VERTEX : 5527
|
|
EDGE : 11056
|
|
WIRE : 5520
|
|
FACE : 5520
|
|
SHELL : 1
|
|
SOLID : 0
|
|
COMPSOLID : 0
|
|
COMPOUND : 1
|
|
SHAPE : 27625
|
|
"
|
|
|
|
checknbshapes result -ref "${nbshapes_expected}" -t -m "Partition of 2 shapes"
|