0027431: [Regression to 6.9.1] Huge tolerance obtained during intersection of cylinde...
[occt.git] / tests / bugs / modalg_4 / bug826_1
1 pload QAcommands
2
3 puts "============"
4 puts "OCC826"
5 puts "============"
6 puts ""
7 ###################################
8 ## BRepAlgoAPI_Fuse fails on revolved and sphere
9 ###################################
10 ## Now this test uses BOPAlgo.
11 ## Intersection of cylinder and sphere. At that,
12 ## the intersection line goes near to the pole
13 ## of the sphere (near, but not through).
14 ## Walking-line has a point in the seam of
15 ## the sphere and neighbour point. Both sections of the
16 ## sphere (through every of these points and parallel to
17 ## equatorial plane) are circles with small radii. As result,
18 ## in 2D-space U-coordinates of these points are too different
19 ## (may be even ~60 degrees) in spite of its neighbourhood.
20 #####################################
21
22 if { [ catch { set result [OCC826 a1 a2 a3] } ] } {
23     puts "Faulty : an exception was caught"
24 } else {
25     checkshape a1
26     checkshape a2
27     bfuse result a1 a2
28     
29     set ExplodeList [explode result]
30     if {[llength ${ExplodeList}] < 1} {
31         puts "Faulty : Resulting shape is empty COMPOUND"
32     }
33 }
34
35 checkprops result -s 272935 
36 checkshape result
37 checkview -display result -2d -path ${imagedir}/${test_image}.png