64652908 |
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 |
58cf74e0 |
20 | checkprops result -l 0.125 |
64652908 |
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 |