0027384: BRepMesh_IncrementalMesh does not take angular deflection into account for...
[occt.git] / tests / bugs / mesh / bug25378_1_3
1 puts "============"
2 puts "CR25378"
3 puts "============"
4 puts ""
5 ###################################################################################
6 # Building of triangulation for distored surfaces can take very long using BRepMesh_IncrementalMesh
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.
11 ###################################################################################
12
13 cpulimit 2000
14
15 restore [locate_data_file bug25378_Blower_bad.brep] b
16 trinfo b
17
18 tclean b
19 set t_001 [expr [lindex [time {incmesh b 0.001}] 0]/1000000]
20 puts "t_001=${t_001}"
21 trinfo b
22
23 if { [regexp {Debug mode} [dversion]] } {
24     cpulimit 2000
25     set max_t_001 600
26 } else {
27   if { [regexp {Windows} [dversion]] } {
28     set max_t_001 189
29   } else {
30     set max_t_001 182
31   }
32 }
33
34 if {${max_t_001} > ${t_001}} {
35    puts "Error. Time of building of triangulation, ${t_001} seconds, is less than expected minimum time - ${max_t_001} seconds"
36 }