0029363: No history for shapes which were produced as a result of intersection
authoremv <emv@opencascade.com>
Tue, 12 Dec 2017 12:10:37 +0000 (15:10 +0300)
committerbugmaster <bugmaster@opencascade.com>
Wed, 20 Dec 2017 15:50:21 +0000 (18:50 +0300)
commit803a8cafe5f80b6d2917f407d1186171ff353d5e
tree09c4182ed2c2c5de0e29db4fd2c858b382db41d8
parent6f1ea0f4b1bc48a023f191712ea1f680434ff107
0029363: No history for shapes which were produced as a result of intersection

1. Implementation of the *Generated* method for the algorithms in Boolean Component.
In terms of these algorithms the shape from the arguments can have Generated shapes only if these new shapes have been obtained as a result of pure intersection (not overlapping) of this shape with any other shapes from arguments.
Thus, the Generated shapes are always:
* VERTICES created from the intersection points and may be Generated from edges and faces only;
* EDGES created from the intersection edges and may be Generated from faces only.

So, only EDGES and FACES could have information about Generated shapes. For all other types of shapes the list of Generated shapes will be empty.

2. Optimization and simplification of the Modified and IsDeleted methods based on the correct filling of the BOPAlgo_BuilderShape::myImagesResult map.

3. Provide history of unification of the solids in the CellsBuilder algorithm.

4. Update of the documentation of Boolean Operations User guide with new chapter "History Information" describing rules for filling history for operations in Boolean Component.

5. Test cases for the issue. New grid "history" has been added into "boolean" category.
17 files changed:
dox/dev_guides/upgrade/upgrade.md
dox/user_guides/boolean_operations/boolean_operations.md
src/BOPAlgo/BOPAlgo_Builder.hxx
src/BOPAlgo/BOPAlgo_BuilderShape.cxx
src/BOPAlgo/BOPAlgo_Builder_4.cxx
src/BOPAlgo/BOPAlgo_CellsBuilder.cxx
src/BOPAlgo/BOPAlgo_CellsBuilder.hxx
src/BOPAlgo/BOPAlgo_Section.cxx
src/BOPAlgo/BOPAlgo_Section.hxx
tests/boolean/grids.list
tests/boolean/history/A1 [new file with mode: 0644]
tests/boolean/history/A2 [new file with mode: 0644]
tests/boolean/history/A3 [new file with mode: 0644]
tests/boolean/history/A4 [new file with mode: 0644]
tests/boolean/history/A5 [new file with mode: 0644]
tests/boolean/history/A6 [new file with mode: 0644]
tests/bugs/caf/bug24869