1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-08 14:17:06 +03:00

0028187: Add possibility to avoid creation of Internal parts in the result of Volume maker algorithm

1. The possibility to prevent addition of internal parts has been added into the following algorithms:
- BOPAlgo_BuilderFace;
- BOPAlgo_BuilderSolid;
- BOPAlgo_MakerVolume.

Setting the option to avoid internal parts for MakerVolume algorithm guarantees that the result solids
will be manifold and not contain any internal parts. But it does not prevent from occurrence
of the internal edges or vertices in the faces.

2. The Set/Get methods of the BOPAlgo_BuilderArea class have been made inline.

3. Draw command mkvolume has been updated to take into account the new option.

4. BRepOffset_MakeOffset::BuildShellsCompleteInter() has been modified to use the new option of BOPAlgo_MakerVolume
to speed up the construction of the final result solid.

5. Documentation has been updated with new section dedicated to BOPAlgo_MakerVolume algorithm.

6. Test case for the issue.

# Conflicts:
#	src/BOPTest/BOPTest_BOPCommands.cxx
This commit is contained in:
emv
2016-12-05 15:52:36 +03:00
parent ebbe94d4a8
commit f27159fca1
15 changed files with 182 additions and 124 deletions

View File

@@ -0,0 +1,21 @@
puts "========"
puts "OCC28187"
puts "========"
puts ""
#################################################
# Add possibility to avoid creation of Internal parts in the result of Volume maker algorithm
#################################################
restore [locate_data_file bug28187_faces.brep] cf
vertex v1 1 1 1
vertex v2 1 9 1
edge e v1 v2
compound v1 v2 e int_sh
mkvolume result cf int_sh -c -ai
checkshape result
checknbshapes result -vertex 16 -edge 22 -wire 10 -face 8 -shell 1 -solid 1
checkprops result -v 750 -s 550
checkview -display result -2d -path ${imagedir}/${test_image}.png