0030151: Modeling Algorithms - Removal of the API level of old Boolean operations...
[occt.git] / tests / bugs / modalg_2 / bug526
1 #INTERFACE IGES
2 puts "========"
3 puts "OCC526"
4 puts "========"
5 puts ""
6 ################################################
7 ## BRepAlgoAPI_Section fails to build planar sections on some faces
8 ################################################
9
10 pload XDE
11
12 restore [locate_data_file OCC592.brep] a 
13
14 set Z 67.599311020481764
15 plane p 0 0 $Z
16 mkface f p
17 bsection r1 a f
18 if ![regexp VERTEX [statshape r1]] {puts [format "OCC526 FAULTY Z=%f" $Z ] }
19
20 set Z 66.599311020481764
21 plane p 0 0 $Z 
22 mkface f p
23 bsection r2 a f
24 if ![regexp VERTEX [statshape r2]] {puts [format "OCC526 FAULTY Z=%f" $Z ] }
25
26 set Z 65.599311020481764
27 plane p 0 0 $Z 
28 mkface f p
29 bsection result a f
30 if ![regexp VERTEX [statshape result]] {puts [format "OCC526 FAULTY Z=%f" $Z ] }
31
32 checkprops result -l 27.8021 
33 checkshape result 
34 checksection result
35 checkview -display result -2d -path ${imagedir}/${test_image}.png
36
37