0029355: OCCT 6.9.1 persistence restored in OCCT 7.2.0 not working
[occt.git] / tests / bugs / fclasses / bug27114
CommitLineData
fa6d1712 1puts "========"
2puts "OCC27114"
3puts "========"
4puts ""
5##############################################
6# DistShapeShape gives not all solutions
7# Correct result is 2 solutions
8##############################################
9
10restore [locate_data_file bug27114.brep] aShape
11explode aShape
12set anInfo [distmini d aShape_1 aShape_2]
13
14# Check number of solutions
15if { [llength $anInfo] != 9 } {
16 puts "ERROR: Incorrect number of solutions"
17} else {
18 puts "OK: Two solutions is found"
19}
20
21# Check extrema distance
22set absTol 1.0e-10
23set relTol 0.001
24set aDist_Exp 0.0
25set aDist [dval d_val]
26checkreal "Distance value check" $aDist $aDist_Exp $absTol $relTol