0025957: nurbsconvert modifies original shape
[occt.git] / tests / bugs / modalg_6 / bug26718
1 puts "============"
2 puts "OCC26718"
3 puts "============"
4 puts ""
5 #############################################################################################
6 ## Big tolerance value of the edge in the result of Genral Fuse operation
7 #############################################################################################
8
9 restore [locate_data_file bug26718_w6_b1.brep] b1
10 restore [locate_data_file bug26718_w6_b2.brep] b2
11
12 bclearobjects
13 bcleartools
14 baddobjects b1
15 baddtools b2
16
17 bfillds
18 bbuild result
19
20 checkprops result -s 2.3834e+06 
21 checkshape result
22
23 set nbshapes_expected "
24 Number of shapes in shape
25  VERTEX    : 7
26  EDGE      : 11
27  WIRE      : 8
28  FACE      : 5
29  SHELL     : 2
30  SOLID     : 2
31  COMPSOLID : 0
32  COMPOUND  : 1
33  SHAPE     : 36
34 "
35
36 checknbshapes result -ref ${nbshapes_expected} -t -m "Result obtained by General Fuse operation"
37
38 regexp {Tolerance +MAX=([-0-9.+eE]+)} [tolerance result] full MaxTolerance
39 puts "MaxTolerance=$MaxTolerance"
40
41 set expected_MaxTolerance 0.317915740714732
42 set tol_abs_MaxTolerance 0.01
43 set tol_rel_MaxTolerance 0.01
44 checkreal "MaxTolerance" ${MaxTolerance} ${expected_MaxTolerance} ${tol_abs_MaxTolerance} ${tol_rel_MaxTolerance}
45
46 checkview -display result -3d -path ${imagedir}/${test_image}.png