0028594: Geom2dAPI_Interpolate generated curve is not the same as proe
[occt.git] / tests / bugs / modalg_6 / bug26738
CommitLineData
0d0481c7 1puts "============"
2puts "OCC26738"
3puts "============"
4puts ""
5#######################################################################
6# Make Boolean operations non-destructive when running with fuzzy option
7#######################################################################
8
9restore [locate_data_file bug26619_shell_ft81_h0.brep] h0
10restore [locate_data_file bug26619_the_face.brep] f0
11
12regexp {Tolerance +MAX=([-0-9.+eE]+)} [tolerance h0] full ExpectedMaxTol_h0
13regexp {Tolerance +MAX=([-0-9.+eE]+)} [tolerance f0] full ExpectedMaxTol_f0
14
15#turn on non-destructive mode of BOP and fuzzy value;
16#with this combination the test is fail before the fix 26738,
17#as tolerance of input shape is changed
18bnondestructive 1
19bfuzzyvalue 0.1
20
21bclearobjects
22bcleartools
23baddobjects h0
24baddtools f0
25bfillds
26bbop result 4
27
28regexp {Tolerance +MAX=([-0-9.+eE]+)} [tolerance h0] full MaxTol_h0
29regexp {Tolerance +MAX=([-0-9.+eE]+)} [tolerance f0] full MaxTol_f0
30
31set tol_abs_MaxTol 0.0001
32set tol_rel_MaxTol 0.0001
33checkreal "MaxTolerance h0" ${MaxTol_h0} ${ExpectedMaxTol_h0} ${tol_abs_MaxTol} ${tol_rel_MaxTol}
34checkreal "MaxTolerance f0" ${MaxTol_f0} ${ExpectedMaxTol_f0} ${tol_abs_MaxTol} ${tol_rel_MaxTol}
35
36checkprops result -l 150.23
37
38set 2dviewer 1