Adjusting testing cases for current state of OCCT
[occt.git] / tests / bugs / modalg_5 / bug23845
... / ...
CommitLineData
1puts "================"
2puts "OCC23845"
3puts "================"
4puts ""
5#######################################################################
6# New auxilary method concatenating a wire into an edge based on C0-continuous curve.
7#######################################################################
8
9restore [locate_data_file bug23845_profil_0a.brep] a
10restore [locate_data_file bug23845_profil_1a.brep] b
11
12concatC0wire aa a
13concatC0wire bb b
14
15set CMP_TOL 1.e-6
16
17# 1
18checkshape aa
19set tolmaxres [tolmax aa]
20regexp {max tol = ([-0-9.+eE]+)} $tolmaxres full MaxTolerance
21if { ${MaxTolerance} > ${CMP_TOL} } {
22 puts "Error: invalid tolerance of first wire"
23}
24
25# 2
26checkshape bb
27set tolmaxres [tolmax bb]
28regexp {max tol = ([-0-9.+eE]+)} $tolmaxres full MaxTolerance
29if { ${MaxTolerance} > ${CMP_TOL} } {
30 puts "Error: invalid tolerance of second wire"
31}