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