1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00
occt/tests/bugs/modalg_7/bug24632_2
emv 81a55a6996 0029333: Boolean Operations - Prevent modification of the input shapes in case their sub-shapes have not been modified
Prevent modification of the input shapes in destructive mode in case their sub-shapes have not been modified:
1. Prevent edge splitting for the pave blocks with old vertices if it is possible to use the existing edge (*BOPAlgo_PaveFiller::MakeSplitEdges*);
2. Prevent creation of the new containers (WIRES/SHELLS/COMPSOLIDS) if non of its parts have been modified (*BOPAlgo_Builder::FillImagesContainer*);
3. Prevent creation of the new face if non of its wires have been modified (*BOPAlgo_Builder::FillImagesFaces*);
4. If possible, use the original face to be the representative for the group of SD faces (*BOPAlgo_Builder::FillSameDomainFaces*).

Cosmetic changes:
1. Documentation of the *BOPAlgo_Builder* class.
2. Making simple methods of the *BOPAlgo_Builder* class inline.
3. Getting rid of the *BOPAlgo_Builder::mySplits* field as it is excessive. *BOPAlgo_Builder::myImages* can be used instead.
3. Moving the Check Inverted option from *BOPAlgo_Options* to *BOPAlgo_Builder*.

Test cases for the issue.
Adjustment of the test case to their current behavior.
Test case *blend/complex/H2* has been deleted as duplicate of the test case *blend/simple/Z1*.
2017-11-30 12:11:20 +03:00

49 lines
1.1 KiB
Plaintext

puts "========"
puts "OCC24632"
puts "========"
puts ""
###############################################################
# Artifacts during Boolean cut operation on neighboring parts
###############################################################
restore [locate_data_file bug24632_general.brep] general
restore [locate_data_file bug24632_fitting.brep] fitting
restore [locate_data_file bug24632_cramp.brep] cramp
restore [locate_data_file bug24632_cut_1.brep] cut_1
restore [locate_data_file bug24632_cut_2.brep] cut_2
explode fitting so
bclearobjects
bcleartools
baddobjects fitting_1 fitting_2
bfillds
bbuild fitting_12
checkshape fitting_12
bclearobjects
bcleartools
baddobjects general fitting_12
bfillds
bbuild beam
checkshape beam
bclearobjects
bcleartools
baddobjects beam cramp
bfillds
bbuild beam_1
checkshape beam_1
bop beam_1 cut_1
bopcut beam_2
checkshape beam_2
bop beam_2 cut_2
bopcut result
checkshape result
checknbshapes result -solid 4 -shell 4 -face 64 -wire 73 -t
checkprops result -v 1.61677e+8
checkview -display result -2d -path ${imagedir}/${test_image}.png