0027270: Boolean operations: incorrect assembling of sub-shapes in container shapes (wires, shells, compsolids)

The map to protect the result of Boolean operation from duplicating parts in containers has been removed (method void BOPAlgo_BOP::BuildShape()).
The results of Boolean operations on containers will be the following:
1. For the arguments of collection type (WIRE, SHELL, COMPSOLID) containing overlapping parts the overlapping parts
passed into result will be repeated for each container from the input shapes containing such parts.
2. The result of the operation Fuse for the arguments of collection type (WIRE, SHELL, COMPSOLID) will contain
the same number of containers as the arguments. The overlapping parts (EDGES/FACES/SOLIDS) will be shared among them.
For example, the result of Fuse operation between two wires will be two wires sharing coinciding edges if any.
3. The result of the operation Common for the arguments of collection type (WIRE, SHELL, COMPSOLID) will consist
of the containers containing the same overlapping parts. For example, the result of Common operation between two
fully/partially overlapping wires will be two wires containing the same edges.

Style correction.

Added test case bugs/modalg_1/bug13538
Modified boolean test cases according to new begavior
This commit is contained in:
emv
2016-03-17 12:04:59 +03:00
committed by bugmaster
parent 447c7e54f0
commit 1511c7e90f
53 changed files with 101 additions and 53 deletions

View File

@@ -3,7 +3,7 @@ restore [locate_data_file offset_wire_034.brep] b
bfuse result a b
checkprops result -l 739.311
checkprops result -l 1085.29
checksection result
checknbshapes result -vertex 14 -edge 14 -t

View File

@@ -3,7 +3,7 @@ restore [locate_data_file case_3_wire2.brep] b
bfuse result a b
checkprops result -l 739.311
checkprops result -l 1085.29
checksection result
checknbshapes result -vertex 20 -edge 20 -t

View File

@@ -3,7 +3,7 @@ restore [locate_data_file case_3_wire5.brep] b
bfuse result a b
checkprops result -l 862.192
checkprops result -l 928.558
checksection result
checknbshapes result -vertex 12 -edge 13 -t

View File

@@ -3,7 +3,7 @@ restore [locate_data_file case_9_wire1.brep] b
bfuse result a b
checkprops result -l 1809.78
checkprops result -l 1953.57
checksection result
checknbshapes result -vertex 8 -edge 9 -t

View File

@@ -3,7 +3,7 @@ restore [locate_data_file case_9_wire2.brep] b
bfuse result a b
checkprops result -l 1982.81
checkprops result -l 2126.59
checksection result
checknbshapes result -vertex 10 -edge 11 -t

View File

@@ -3,7 +3,7 @@ restore [locate_data_file case_9_wire3.brep] b
bfuse result a b
checkprops result -l 2046.69
checkprops result -l 2126.59
checksection result
checknbshapes result -vertex 10 -edge 11 -t

View File

@@ -3,7 +3,7 @@ restore [locate_data_file case_9_wire1.brep] b
bfuse result a b
checkprops result -l 1377.51
checkprops result -l 1521.3
checksection result
checknbshapes result -vertex 7 -edge 7 -t