cd803dcd |
1 | puts "========" |
2 | puts "OCC29103" |
3 | puts "========" |
4 | puts "" |
5 | ################################################# |
6 | # No intersection curve between faces if starting points are given |
7 | ################################################# |
8 | |
9 | set MaxTolReached 2.0e-7 |
10 | set GoodNbCurv 1 |
11 | set ExpLength 0.074141742883251954 |
12 | |
13 | restore [locate_data_file bug29073_M6.brep] a |
14 | restore [locate_data_file bug29073_Shell.brep] b |
15 | explode a f |
16 | explode b f |
17 | |
18 | don b_2 |
19 | axo |
20 | fit |
21 | disp a_6 |
22 | |
23 | set log1 [bopcurves a_6 b_2 -2d] |
24 | |
25 | checkview -screenshot -2d -path ${imagedir}/${test_image}_1.png |
26 | checklength c_1 -l $ExpLength |
27 | |
28 | don b_2 |
29 | axo |
30 | fit |
31 | disp a_6 |
32 | |
33 | set log2 [bopcurves a_6 b_2 -2d -p -0.55478319275098653 1.2919191091235780 0.80333089657224976 0.67079577554162440 -p -0.62451407353846222 1.2667484772947102 0.82894736842100003 0.70523311453721027] |
34 | |
35 | checkview -screenshot -2d -path ${imagedir}/${test_image}_2.png |
36 | checklength c_1 -l $ExpLength |
37 | |
38 | regexp {Tolerance Reached=+([-0-9.+eE]+)\n+([-0-9.+eE]+)} ${log1} full Toler1 NbCurv1 |
39 | regexp {Tolerance Reached=+([-0-9.+eE]+)\n+([-0-9.+eE]+)} ${log2} full Toler2 NbCurv2 |
40 | |
41 | if {$Toler1 > $MaxTolReached} { |
42 | puts "Error: Big tolerance is returned by intersector w/o start points" |
43 | } |
44 | |
45 | if {$Toler2 > $MaxTolReached} { |
46 | puts "Error: Big tolerance is returned by intersector with start points" |
47 | } |
48 | |
49 | if {$NbCurv1 != $GoodNbCurv} { |
50 | puts "Error: Please check NbCurves for intersector w/o start points" |
51 | } |
52 | |
53 | if {$NbCurv2 != $GoodNbCurv} { |
54 | puts "Error: Please check NbCurves for intersector with start points" |
55 | } |
56 | |