0028802: The tolerance reached by approximator is used in creation of an edge, it...
[occt.git] / tests / bugs / modalg_6 / bug26896_3
CommitLineData
c8f62d27 1puts "========"
2puts "OCC26896"
3puts "========"
4puts ""
5#################################
6# Wrong result of bsection algorithm
7#################################
8
9restore [locate_data_file bug26896_cutshape1.brep] b1
10
11vertex v1 554.852479447 5561.24970151 -18225.8420231
12vertex v2 19830.8118639 5561.31737822 -18184.3230952
13vertex v3 19967.9643885 5620.52434157 18138.50479
14vertex v4 692.019599679 5620.80022039 18307.753443
15
16edge e1 v1 v2
17edge e2 v2 v3
18edge e3 v3 v4
19edge e8 v4 v1
20
21wire w3 e1 e2 e3 e8
22mkplane f3 w3
23
24bsection result b1 f3
25
26regexp {Tolerance +MAX=([-0-9.+eE]+)} [tolerance result] full MaxTolerance
27
bdae3beb 28set expected_MaxTolerance 0.0020859166104267744
c8f62d27 29set tol_abs_MaxTolerance 0.0
30set tol_rel_MaxTolerance 1.0e-4
31checkreal "MaxTolerance" ${MaxTolerance} ${expected_MaxTolerance} ${tol_abs_MaxTolerance} ${tol_rel_MaxTolerance}
32
33set nbshapes_expected "
34Number of shapes in shape
35 VERTEX : 2
36 EDGE : 1
37 WIRE : 0
38 FACE : 0
39 SHELL : 0
40 SOLID : 0
41 COMPSOLID : 0
42 COMPOUND : 1
43 SHAPE : 4
44"
45checknbshapes result -ref ${nbshapes_expected} -t -m "BSECTION"
46
47smallview
48
49donly result
50fit
51display b1 f3
52
5747059b 53checkview -screenshot -2d -path ${imagedir}/${test_image}.png