0027341: Incorrect exact HLR results
[occt.git] / tests / bugs / modalg_6 / bug26896_1
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
15vertex v5 623.443337395 5591.19673871 146.339500409
16vertex v6 623.428741731 5590.85318318 -64.4280804958
17
18edge e1 v1 v2
19edge e2 v2 v3
20edge e3 v3 v4
21edge e4 v4 v5
22edge e5 v5 v6
23edge e6 v6 v1
24
25wire w1 e1 e2 e3 e4 e5 e6
26mkplane f1 w1
27
28bsection result b1 f1
29
30regexp {Tolerance +MAX=([-0-9.+eE]+)} [tolerance result] full MaxTolerance
31
32set expected_MaxTolerance 0.0023471981939699712
33set tol_abs_MaxTolerance 0.0
34set tol_rel_MaxTolerance 1.0e-4
35checkreal "MaxTolerance" ${MaxTolerance} ${expected_MaxTolerance} ${tol_abs_MaxTolerance} ${tol_rel_MaxTolerance}
36
37set nbshapes_expected "
38Number of shapes in shape
39 VERTEX : 2
40 EDGE : 1
41 WIRE : 0
42 FACE : 0
43 SHELL : 0
44 SOLID : 0
45 COMPSOLID : 0
46 COMPOUND : 1
47 SHAPE : 4
48"
49
50checknbshapes result -ref ${nbshapes_expected} -t -m "BSECTION"
51
52smallview
53
54donly result
55fit
56display b1 f1
57
5747059b 58checkview -screenshot -2d -path ${imagedir}/${test_image}.png