c8f62d27 |
1 | puts "========" |
2 | puts "OCC26896" |
3 | puts "========" |
4 | puts "" |
5 | ################################# |
6 | # Wrong result of bsection algorithm |
7 | ################################# |
8 | |
9 | restore [locate_data_file bug26896_cutshape1.brep] b1 |
10 | |
11 | vertex v1 554.852479447 5561.24970151 -18225.8420231 |
12 | vertex v2 19830.8118639 5561.31737822 -18184.3230952 |
13 | vertex v3 19967.9643885 5620.52434157 18138.50479 |
14 | vertex v4 692.019599679 5620.80022039 18307.753443 |
15 | |
16 | edge e1 v1 v2 |
17 | edge e2 v2 v3 |
18 | edge e3 v3 v4 |
19 | edge e8 v4 v1 |
20 | |
21 | wire w3 e1 e2 e3 e8 |
22 | mkplane f3 w3 |
23 | |
24 | bsection result b1 f3 |
25 | |
26 | regexp {Tolerance +MAX=([-0-9.+eE]+)} [tolerance result] full MaxTolerance |
27 | |
bdae3beb |
28 | set expected_MaxTolerance 0.0020859166104267744 |
c8f62d27 |
29 | set tol_abs_MaxTolerance 0.0 |
30 | set tol_rel_MaxTolerance 1.0e-4 |
31 | checkreal "MaxTolerance" ${MaxTolerance} ${expected_MaxTolerance} ${tol_abs_MaxTolerance} ${tol_rel_MaxTolerance} |
32 | |
33 | set nbshapes_expected " |
34 | Number 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 | " |
45 | checknbshapes result -ref ${nbshapes_expected} -t -m "BSECTION" |
46 | |
47 | smallview |
48 | |
49 | donly result |
50 | fit |
51 | display b1 f3 |
52 | |
5747059b |
53 | checkview -screenshot -2d -path ${imagedir}/${test_image}.png |