0029484: Avoid inheritance of the BRepAlgoAPI_Check from BRepBuilderAPI_MakeShape
[occt.git] / tests / bugs / modalg_7 / bug27227
CommitLineData
340054e1 1puts "============"
2puts "OCC27227"
3puts "============"
4puts ""
5#############################################################
6# Intersection curve is not continued to the surface boundary
7#############################################################
8
9ptorus a0 100 20
10tcopy a0 a1
11trotate a1 0 0 0 1 0 0 90
12
13explode a0 f
14explode a1 f
15
16smallview
17donly a0_1 a1_1
18
19bopcurves a0_1 a1_1 -2d
20
21disp c_5
22
23set log [dump c_5]
24
25regexp {Degree +([-0-9.+eE]+), +([-0-9.+eE]+) Poles, +([-0-9.+eE]+)} ${log} full Degree Poles KnotsPoles
26puts "Degree=${Degree}"
27puts "Poles=${Poles}"
28puts "KnotsPoles=${KnotsPoles}"
29puts ""
30
31set Pole 1
32set exp_string " +${Pole} : +(\[-0-9.+eE\]+), +(\[-0-9.+eE\]+), +(\[-0-9.+eE\]+)"
33regexp ${exp_string} ${log} full X_first Y_first Z_first
34
35puts "Pole=${Pole}"
36puts "X_first=${X_first}"
37puts "Y_first=${Y_first}"
38puts "Z_first=${Z_first}"
39puts ""
40
41set Pole ${Poles}
42set exp_string " +${Pole} : +(\[-0-9.+eE\]+), +(\[-0-9.+eE\]+), +(\[-0-9.+eE\]+)"
43regexp ${exp_string} ${log} full X_end Y_end Z_end
44
45puts "Pole=${Pole}"
46puts "X_end=${X_end}"
47puts "Y_end=${Y_end}"
48puts "Z_end=${Z_end}"
49puts ""
50
51set tol_abs [checkmaxtol a0]
52set tol_rel 0.01
53
54set expected_X_first 80.
55checkreal "X_first" ${X_first} ${expected_X_first} ${tol_abs} ${tol_rel}
56set expected_Y_first 0.
57checkreal "Y_first" ${Y_first} ${expected_Y_first} ${tol_abs} ${tol_rel}
58set expected_Z_first 0.
59checkreal "Z_first" ${Z_first} ${expected_Z_first} ${tol_abs} ${tol_rel}
60puts ""
61
62set expected_X_end 120.
63checkreal "X_end" ${X_end} ${expected_X_end} ${tol_abs} ${tol_rel}
64set expected_Y_end 0.
65checkreal "Y_end" ${Y_end} ${expected_Y_end} ${tol_abs} ${tol_rel}
66set expected_Z_end 0.
67checkreal "Z_end" ${Z_end} ${expected_Z_end} ${tol_abs} ${tol_rel}
68puts ""