0025124: [Feature request] Removal of continuity checks for offset geometries
[occt.git] / tests / bugs / modalg_5 / bug24899
CommitLineData
004e8466 1puts "=========="
2puts "OCC24899"
3puts "=========="
4puts ""
5##################################################################################################
6# Time of computation of intersection points with help of class BRepIntCurveSurface_Inter is big
7##################################################################################################
8
9polyline l -10 1 1 80 1 1
10explode l e
11
12restore [locate_data_file bug24899_TheHull.brep] h1
13mkcurve c1 l_1
14BRepIntCS c1 h1 r
15distmini dd l_1 h1
16
17dchrono t1 reset
18dchrono t1 start
19
20for { set i 0} { $i <= 100 } {incr i} {
21 BRepIntCS c1 h1 r
22}
23
24dchrono t1 stop
25set time1 [dchrono t1 show]
26regexp {CPU user time: ([-0-9.+eE]+) seconds} $time1 full timeint
27puts "Time performing BRepIntCurveSurface = $timeint"
28
29dchrono t2 reset
30dchrono t2 start
31for { set j 0} { $j <= 100 } {incr j} {
32 distmini dd l_1 h1
33}
34
35dchrono t2 stop
36set time2 [dchrono t2 show]
37regexp {CPU user time: ([-0-9.+eE]+) seconds} $time2 full timeextr
38puts "Time performing BRepExtrema_DistShapeShape = $timeextr"
39
40if { $timeint > 2 * $timeextr } {
41 puts "Error : Time of intersection of curve with shell is more than two time from BRepExtrema"
42} else {
43 puts "OK: Time is good"
44}