0027015: Sewing returns invalid shape if some faces are nearly plane cones
[occt.git] / tests / bugs / modalg_6 / bug26241
CommitLineData
93937391 1puts "========"
2puts "OCC26241"
3puts "========"
4puts ""
5###########################################################
6# Sewing algorithm computes tolerance of joint vertex too rough
7###########################################################
8
9plane p 0 0 0 0 0 1 1 0 0
10mkface f1 p 0 10 0 10
11mkface f2 p 0 10 11 21
12settolerance f1 2
13settolerance f2 3
14sewing res 3 f1 f2
15
16regexp {Tolerance +MAX=([-0-9.+eE]+)} [tolerance res] full MaxTolerance
17puts "MaxTolerance=$MaxTolerance"
18
19set expected_MaxTolerance 3.0
20set tol_abs_MaxTolerance 0.1
21set tol_rel_MaxTolerance 0.1
22checkreal "MaxTolerance" ${MaxTolerance} ${expected_MaxTolerance} ${tol_abs_MaxTolerance} ${tol_rel_MaxTolerance}