]> OCCT Git - occt-copy.git/commit
0027049: Make non-destructive mode be defined by default in Boolean operations CR27049
authoremv <emv@opencascade.com>
Thu, 15 Apr 2021 13:30:03 +0000 (16:30 +0300)
committeremv <emv@opencascade.com>
Mon, 26 Apr 2021 08:50:21 +0000 (11:50 +0300)
commitf858df7b56cb29f8fbf5f3261bcd94c788162eb3
tree435e30e84e7b07242f2a7edafa240d78c9f95054
parentfd2efe5428b3b2b9d300b0612c0a53ee2486ba64
0027049: Make non-destructive mode be defined by default in Boolean operations

Set non-destructive mode enabled by default in Boolean operation algorithms. It means that shapes will not be modified during any Boolean, Split, GeneralFuse, MakerVolume, CellsBuilder operations.

Since now, in this default mode, the user should not expect any shape from the input arguments being present in the result shape of the operations mentioned above. Some of the input shapes may be passed to the result, in case they are not affected by the operation, but in general, it is better to work through the History mechanism. The shapes replaced by the copies should be obtained through Modified method.

Incomplete: documentation of the algorithms has to be updated accordingly.
27 files changed:
src/BOPAlgo/BOPAlgo_Builder.cxx
src/BOPAlgo/BOPAlgo_Builder.hxx
src/BOPAlgo/BOPAlgo_PaveFiller.cxx
src/BOPAlgo/BOPAlgo_PaveFiller.hxx
src/BOPTest/BOPTest_Objects.cxx
src/BRepAlgoAPI/BRepAlgoAPI_BuilderAlgo.cxx
src/BRepAlgoAPI/BRepAlgoAPI_BuilderAlgo.hxx
src/BRepOffset/BRepOffset_MakeOffset.cxx
src/BRepOffset/BRepOffset_MakeOffset_1.cxx
tests/bugs/modalg_5/bug24302
tests/bugs/modalg_6/bug26619
tests/bugs/modalg_6/bug26738
tests/bugs/modalg_6/bug28775
tests/bugs/modalg_7/bug27049
tests/bugs/modalg_7/bug28211_2
tests/bugs/modalg_7/bug28274
tests/bugs/modalg_7/bug28485
tests/bugs/modalg_7/bug28485_1
tests/bugs/modalg_7/bug30396_1
tests/bugs/modalg_7/bug31835_1
tests/bugs/modalg_7/bug31835_2
tests/bugs/modalg_7/bug31836
tests/bugs/modalg_7/bug31850_1
tests/bugs/modalg_7/bug31850_2
tests/bugs/modalg_7/bug31858_1
tests/bugs/modalg_7/bug31858_2
tests/perf/modalg/bug29329