0027322: geom/revolution_00/A1: Incorrect pcurve creation
[occt.git] / tests / bugs / fclasses / bug27131
CommitLineData
1907fb9a 1puts "========"
2puts "OCC27131"
3puts "========"
4puts ""
5##############################################
6# DistShapeShape works slow on attached shapes
7##############################################
8restore [locate_data_file bug27131.brep] aShape
9explode aShape
10
11cpulimit 20
12
13# Check computation time
14chrono h reset; chrono h start
15for { set i 1 } { $i <= 100 } { incr i } {
16 distmini d aShape_1 aShape_2
17}
18chrono h stop; chrono h show
19
20regexp {CPU user time: (\d*)} [dchrono h show] dummy sec
21if {$sec > 1} {
22 puts "Error: too long computation time $sec seconds"
23} else {
24 puts "Computation time is OK"
25}
26
27# Check result of distance distance
28set absTol 1.0e-10
29set relTol 0.001
30set aDist_Exp 0.0029087110153708622
31set aDist [dval d_val]
32checkreal "Distance value check" $aDist $aDist_Exp $absTol $relTol