0033017: Implement an algorithm to find a proximity between a pair of shapes
[occt.git] / tests / lowalgos / proximity / C3
1 puts "============"
2 puts "0033017: Implement an algorithm to find a proximity between a pair of shapes"
3 puts "==========="
4 puts "" 
5
6 cylinder cy1 0 0 1 1 0 0 0.1
7 trimv cy1 cy1 0 1
8 mkface fcy1 cy1
9 incmesh fcy1 1.e-3
10
11 cylinder cy2 0 0 0 1 0 0 0.1
12 trimv cy2 cy2 0 1
13 mkface fcy2 cy2
14 incmesh fcy2 1.e-3
15
16 set log [proximity fcy1 fcy2 -value -profile]
17 regexp {Proximity value: ([0-9+-.eE]*)} $log full val;
18
19 set tol 1.e-3
20 set expected 1.0
21
22 regexp {Status of ProxPnt1 on ([A-Za-z0-9._-]*) : ([A-Za-z]*)} $log full val1 val2
23 set status1 ${val2}
24 set expected_status1 Border
25
26 regexp {Status of ProxPnt2 on ([A-Za-z0-9._-]*) : ([A-Za-z]*)} $log full val1 val2
27 set status2 ${val2}
28 set expected_status2 Border