Adding test cases from grid chl
[occt.git] / tests / bugs / modalg / bug83_2
CommitLineData
a87752f3 1puts "============"
2puts "BUC60912"
3puts "OCC83"
4puts "============"
5puts ""
6###############################
7## Section of simple BSpline surfaces is performed too slow
8###############################
9
10puts "2 case: perform section with planar BSpline surface"
11restore [locate_data_file BUC60912_sec_slow.brep] c
12explode c
13puts [checkshape c_1]
14puts [checkshape c_2]
15
16renamevar c_1 sh
17renamevar c_2 pr
18plane f 0 0 0 1 0 0
19mkface f f -11 11 -11 11
20
21puts "Info: perform section with planar BSpline surface"
22dchrono h2 reset
23dchrono h2 start
24bsection result sh pr
25dchrono h2 stop
26set q2 [ dchrono h2 show ]
27regexp {CPU user time: ([-0-9.+eE]+) seconds} $q2 full z2
28puts "$z2"
29if { $z2 > 40 } {
30 puts "Elapsed time is more then 40 seconds - Faulty"
31} else {
32 puts "Elapsed time is less then 40 - OK"
33}
34set length 42.879
35set 2dviewer 0
36