5 ###############################
6 ## A partition of 2 shapes stresses a performance issue
7 ###############################
9 if { [regexp {Debug mode} [dversion]] } {
10 if { [regexp {Windows} [dversion]] } {
18 if { [regexp {Windows} [dversion]] } {
27 restore [locate_data_file bug25742_pipeFiss.brep] b1
28 restore [locate_data_file bug25742_shellFiss.brep] b2
41 bopcurves b1_4 b2_1 -2d
45 checkview -screenshot -2d -path ${imagedir}/${test_image}_1.png
47 set q [dchrono h show]
49 regexp {CPU user time: ([-0-9.+eE]+) seconds} $q full z
52 if { $z > ${max_time} } {
53 puts "Elapsed time of bopcurves is more than ${max_time} seconds - Error"
55 puts "Elapsed time of bopcurves is less than ${max_time} seconds - OK"
65 set CurveNumb [intersect resi s1 s2]
68 set q2 [dchrono h2 show]
70 regexp {CPU user time: ([-0-9.+eE]+) seconds} $q2 full z2
73 if { $z2 > ${max_time2} } {
74 puts "Elapsed time of intersect is more than ${max_time2} seconds - Faulty"
76 puts "Elapsed time of intersect is less than ${max_time2} seconds - OK"
79 if { [llength ${CurveNumb}] < 1 } {
80 puts "Error : Bad intersection"
82 puts "OK : Good intersection"
89 checkview -screenshot -2d -path ${imagedir}/${test_image}_2.png