0027341: Incorrect exact HLR results
[occt.git] / tests / bugs / modalg_6 / bug26841_2
CommitLineData
47e3009d 1puts "============"
2puts "OCC26841"
3puts "============"
4puts ""
5###############################
6## Wrong result obtained by intersection algorithm.
7###############################
8
9restore [locate_data_file bug26841c3-prism.brep] p3
360f800b 10restore [locate_data_file bug26841c1-deck.brep] a3
47e3009d 11
12bsection result a3 p3 -n2d2
13
14smallview
15donly result
16fit
17display a3 p3
18
19
20set nbshapes_expected "
21Number of shapes in shape
22 VERTEX : 10
23 EDGE : 10
24 WIRE : 0
25 FACE : 0
26 SHELL : 0
27 SOLID : 0
28 COMPSOLID : 0
29 COMPOUND : 1
30 SHAPE : 21
31"
32
33checknbshapes result -ref ${nbshapes_expected} -t -m "SECTION"
34
35regexp {Tolerance +MAX=([-0-9.+eE]+)} [tolerance result] full MaxTolerance
36puts "MaxTolerance=$MaxTolerance"
37
38set expected_MaxTolerance 0.00010145423883977269
39set tol_abs_MaxTolerance 0.0
40set tol_rel_MaxTolerance 0.001
41checkreal "MaxTolerance" ${MaxTolerance} ${expected_MaxTolerance} ${tol_abs_MaxTolerance} ${tol_rel_MaxTolerance}
42
43set log [checksection result]
44
45if { [string compare -nocase $log " nb alone Vertices : 0\n\n"] } {
46 puts "ERROR: the section is not closed"
47} else {
48 puts "The section is OK"
49}
50
5747059b 51checkview -screenshot -2d -path ${imagedir}/${test_image}.png