0031492: BRepBuilderAPI_MakeFace crashes on a wire
[occt.git] / tests / bugs / modalg_7 / bug23386
CommitLineData
2508ca8e 1puts "========"
2puts "OCC23386"
3puts "========"
4puts ""
5################################################################################################
6## BRepAlgoAPI_Fuse on two disjoint shapes sometimes loses all geometry from one of the shapes
7################################################################################################
8
9restore [locate_data_file bug23386_a.brep] a
10restore [locate_data_file bug23386_b.brep] b
11
12bfuse result a b
13
14set nbshapes_a "
15Number of shapes in shape
16 VERTEX : 383
17 EDGE : 686
18 WIRE : 297
19 FACE : 297
20 SHELL : 2
21 SOLID : 1
22 COMPSOLID : 0
23 COMPOUND : 0
24 SHAPE : 1666
25"
26checknbshapes a -ref ${nbshapes_a} -t -m "First initial shape"
27
28set nbshapes_b "
29Number of shapes in shape
30 VERTEX : 6
31 EDGE : 9
32 WIRE : 5
33 FACE : 5
34 SHELL : 1
35 SOLID : 1
36 COMPSOLID : 0
37 COMPOUND : 0
38 SHAPE : 27
39"
40checknbshapes b -ref ${nbshapes_b} -t -m "Second initial shape"
41
42set nbshapes_expected "
43Number of shapes in shape
44 VERTEX : 388
45 EDGE : 695
46 WIRE : 302
47 FACE : 302
48 SHELL : 3
49 SOLID : 2
50 COMPSOLID : 0
51 COMPOUND : 1
52 SHAPE : 1693
53"
54checknbshapes result -ref ${nbshapes_expected} -t -m "result of fuse operation"