0025945: Make stable checking of shape global properties in tests
[occt.git] / tests / bugs / modalg_6 / bug24097
1 puts "##################################################"
2 puts "0024097: BRepAlgoAPI_Section returns wrong result"
3 puts "##################################################"
4
5 # load and check faces
6 restore [locate_data_file bug24097_face1.brep] a
7 tolerance a
8 checkshape a
9
10 restore [locate_data_file bug24097_face2.brep] b
11 tolerance b
12 checkshape b
13
14 # build section
15 bsection result a b
16
17 # result should be single open edge with length 0.125
18 checknbshapes result -vertex 2 -edge 1
19 checkmaxtol result -ref 0.0001
20 checkprops result -l 0.125
21
22 # make snapshot
23 vinit Driver1/Viewer1/View1
24 vclear 
25 eval vdisplay result [explode result v]
26 vfit
27 vdisplay a b
28 vdump $imagedir/${test_image}.png