0026310: Very slow boolean cut operations on cylinders
[occt.git] / tests / bugs / modalg_5 / bug24915
CommitLineData
b5ef9d91 1puts "TODO OCC25929 ALL: Error: Tolerance is too big!"
ecc4f148 2puts "========="
3puts "CR24915"
4puts "========="
5puts ""
6###############################
7## Wrong intersection curves between two cylinders
8###############################
9
ecc4f148 10puts "##############################"
11puts "#!!!Searh \"Attention\" keyword on this web-page for additinal checking!!!"
12puts "##############################"
13
14restore [locate_data_file bug24915_ft2.brep] b1
15restore [locate_data_file bug24915_ft3.brep] b2
16
17# 1. topology
18bclearobjects
19bcleartools
20baddobjects b1 b2
21bfillds
22bbuild r
23checkshape r
24
25# 2. geometry
7c32c7c4 26set MaxTol 5.0e-7
ecc4f148 27set log [bopcurves b1 b2]
28
29mksurface s1 b1
30mksurface s2 b2
31
32regexp {Tolerance Reached=+([-0-9.+eE]+)\n+([-0-9.+eE]+)} ${log} full Toler NbCurv
33
34if {${Toler} > ${MaxTol}} {
35 puts "Error: Tolerance is too big!"
36}
37
38for {set i 1} {$i <= ${NbCurv}} {incr i} {
b5ef9d91 39 bounds c_$i U1 U2
ecc4f148 40 dlog reset
41 dlog on
b5ef9d91 42 xdistcs c_$i s1 U1 U2 100
ecc4f148 43 set Log2 [dlog get]
44 set List2 [split ${Log2} {TD= \t\n}]
b5ef9d91 45 set Tolerance 2.0e-5
ecc4f148 46 set Limit_Tol 1.0e-7
47 set D_good 0.
48 catch {checkList ${List2} ${Tolerance} ${D_good} ${Limit_Tol}}
49
50 dlog reset
51 dlog on
b5ef9d91 52 xdistcs c_$i s2 U1 U2 100
ecc4f148 53 set Log2 [dlog get]
54 set List2 [split ${Log2} {TD= \t\n}]
b5ef9d91 55 set Tolerance 2.0e-5
ecc4f148 56 set Limit_Tol 1.0e-7
57 set D_good 0.
58 catch {checkList ${List2} ${Tolerance} ${D_good} ${Limit_Tol}}
59}
60
61smallview
62donly b2 c_2
63fit
64set only_screen_axo 1