0025715: Intersection between cylinders produces excess vertices
[occt.git] / tests / bugs / modalg_5 / bug24005
CommitLineData
788cbaf4 1puts "============"
2puts "OCC24005"
3puts "============"
4puts ""
5###############################
6## Intersecting a slightly off angle plane with a cylinder takes 7+ seconds
7###############################
8
9pload QAcommands
10
11dchrono h reset
12dchrono h start
13
14OCC24005 result
15
16dchrono h stop
17set q [dchrono h show]
18
19regexp {CPU user time: ([-0-9.+eE]+) seconds} $q full z
20puts "$z"
21
4e3aa6b7 22set max_time 0.4
788cbaf4 23if { $z > ${max_time} } {
24 puts "Elapsed time is more than ${max_time} seconds - Faulty"
25} else {
26 puts "Elapsed time is less than ${max_time} seconds - OK"
27}
28
29if { [regexp {Ellipse} [dump result]] == 1 } {
30 puts "result is OK"
31} else {
32 puts "result is Faulty"
33}
34
35set 2dviewer 1