0027802: [Regression to 7.0] Solid classifier raises exception ConstructionError
[occt.git] / tests / bugs / modalg_6 / bug26513
1 puts "========"
2 puts "OCC26513"
3 puts "========"
4 puts ""
5 ###########################################################
6 # Offset API not returning result (seems to be "hanging")
7 ###########################################################
8
9 set max_time 10
10
11 smallview
12
13 restore [locate_data_file bug26513-offset_input.brep] a
14
15 offsetparameter 1.e-7 c i
16 offsetload a 5
17
18 dchrono cr reset
19 dchrono cr start
20 offsetperform result
21 dchrono cr stop
22
23 set chrono_info [dchrono cr show]
24 regexp {CPU user time: ([-0-9.+eE]+) seconds} $chrono_info full CPU_time
25 if { $CPU_time > ${max_time} } {
26   puts "ERROR: OCC26513 is reproduced. Offset operation is too long (> $max_time sec)"
27 }
28
29 donly result
30 fit
31
32 checkview -screenshot -2d -path ${imagedir}/${test_image}.png