0026184: GeomAPI_ExtremaCurveCurve hangs on parallel b-spline curves
[occt.git] / tests / bugs / mesh / bug25378_1_1
CommitLineData
74da0216 1puts "============"
2puts "CR25378"
3puts "============"
4puts ""
5###################################################################################
6# Building of triangulation for distored surfaces can take very long using BRepMesh_IncrementalMesh
9aa684ed 7#
8# Test case was created to control bad situation, building of triangulation takes
9# very long time and it is expected by the meaning of issue #25378.
10# Case when it is passed too fast should be considered as failure.
74da0216 11###################################################################################
12
9aa684ed 13cpulimit 450
14
74da0216 15restore [locate_data_file bug25378_Blower_bad.brep] b
16trinfo b
17
18tclean b
19set t_1 [expr [lindex [time {incmesh b 0.1}] 0]/1000000]
20puts "t_1=${t_1}"
21trinfo b
22
23if { [regexp {Debug mode} [dversion]] } {
9aa684ed 24 set max_t_1 20
74da0216 25} else {
26 if { [regexp {Windows} [dversion]] } {
4b65fc77 27 set max_t_1 9
74da0216 28 } else {
9dd721c0 29 set max_t_1 8
74da0216 30 }
31}
32
9aa684ed 33if {${max_t_1} > ${t_1}} {
34 puts "Error. Time of building of triangulation, ${t_1} seconds, is less than expected minimum time - ${max_t_1} seconds"
35}
74da0216 36