5 ##################################################################################################
6 # Time of computation of intersection points with help of class BRepIntCurveSurface_Inter is big
7 ##################################################################################################
9 polyline l -10 1 1 80 1 1
12 restore [locate_data_file bug24899_TheHull.brep] h1
20 for { set i 0} { $i <= 100 } {incr i} {
25 set time1 [dchrono t1 show]
26 regexp {CPU user time: ([-0-9.+eE]+) seconds} $time1 full timeint
27 puts "Time performing BRepIntCurveSurface = $timeint"
31 for { set j 0} { $j <= 100 } {incr j} {
36 set time2 [dchrono t2 show]
37 regexp {CPU user time: ([-0-9.+eE]+) seconds} $time2 full timeextr
38 puts "Time performing BRepExtrema_DistShapeShape = $timeextr"
40 if { $timeint > 2 * $timeextr } {
41 puts "Error : Time of intersection of curve with shell is more than two time from BRepExtrema"
43 puts "OK: Time is good"