0025449: Excess vertex in result of General Fuse operation.
[occt.git] / tests / bugs / modalg_5 / bug25292_32
1 puts "================"
2 puts "OCC25292"
3 puts "================"
4 puts ""
5 #######################################################################
6 # Face/Face intersection algorithm gives different results for different order of the arguments
7 #######################################################################
8
9 # bopcurves command
10
11 restore [locate_data_file bug25292_f1.brep] f1
12 restore [locate_data_file bug25292_f2.brep] f2
13
14 #############################
15 set log [bopcurves f2 f1 -2d]
16 #############################
17
18 regexp {Tolerance Reached=+([-0-9.+eE]+)\n+([-0-9.+eE]+)} ${log} full Toler NbCurv
19 set MaxTol 1.e-3
20 if {${Toler} > ${MaxTol}} {
21   puts "Error: Tolerance is too big!"
22 }
23 set GoodNbCurv 2
24 if {${NbCurv} != ${GoodNbCurv}} {
25   puts "Error: Curve Number is bad!!"
26 }
27
28 #-------------
29
30 # 1
31 puts ""
32 puts "First curve"
33
34 mksurface s1 f1
35 mksurface s2 f2
36
37 dlog reset
38 dlog on
39 xdistcs c_1 s1 0 1 10
40 set Log1 [dlog get]
41
42 set List1 [split ${Log1} {TD= \t\n}]
43 set Tolerance 1.0e-4
44 set D_good 0.
45 checkList ${List1} ${Tolerance} ${D_good}
46
47 # 2
48 puts ""
49 puts "Second curve"
50
51 dlog reset
52 dlog on
53 xdistcs c_2 s1 0 1 10
54 set Log2 [dlog get]
55
56 set List2 [split ${Log2} {TD= \t\n}]
57 set Tolerance 1.0e-4
58 set D_good 0.
59 checkList ${List2} ${Tolerance} ${D_good}
60
61
62 smallview
63 fit
64 set only_screen_axo 1