3c48723eeff07137e61ccf85f503d37bae79343c
[occt.git] / tests / bugs / heal / bug26489_4
1 puts "============"
2 puts "OCC26489"
3 puts "============"
4 puts ""
5 ######################################################
6 # The class ShapeUpgrade_UnifySameDomain provides the results that are wrong or difficult to explain.
7 ######################################################
8
9 restore [locate_data_file bug26489_r002.brep] b1
10
11 unifysamedom result b1
12
13 explode b1 f
14
15 vinit
16 vsetdispmode 1
17
18 unifysamedomgen x1 b1_1
19 vclear
20 vdisplay x1
21 vfit
22 vdump ${imagedir}/${casename}_1.png
23
24 unifysamedomgen x2 b1_2
25 vclear
26 vdisplay x2
27 vfit
28 vdump ${imagedir}/${casename}_2.png
29
30 unifysamedomgen x3 b1_3
31 vclear
32 vdisplay x3
33 vfit
34 vdump ${imagedir}/${casename}_3.png
35
36 set nbshapes_expected "
37 Number of shapes in shape
38  VERTEX    : 4
39  EDGE      : 4
40  WIRE      : 1
41  FACE      : 1
42  SHELL     : 1
43  SOLID     : 0
44  COMPSOLID : 0
45  COMPOUND  : 0
46  SHAPE     : 11
47 "
48 checknbshapes x1 -ref ${nbshapes_expected} -t -m "x1 result provided by the class ShapeUpgrade_UnifySameDomain"
49 checknbshapes x2 -ref ${nbshapes_expected} -t -m "x2 result provided by the class ShapeUpgrade_UnifySameDomain"
50 checknbshapes x3 -ref ${nbshapes_expected} -t -m "x3 result provided by the class ShapeUpgrade_UnifySameDomain"