From 3f317e7d0c94897c7b6b859fcc6649ee31339d5b Mon Sep 17 00:00:00 2001 From: emv Date: Thu, 20 Oct 2016 11:31:19 +0300 Subject: [PATCH] 0027984: Volume maker algorithm is unable to build all possible solids from the given faces While checking the section edges between pair of faces on coincidence with the existing edges use for checking only the edges from these two faces. Test case for the issue. --- src/BOPAlgo/BOPAlgo_PaveFiller_6.cxx | 1 + tests/bugs/modalg_6/bug27984 | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 tests/bugs/modalg_6/bug27984 diff --git a/src/BOPAlgo/BOPAlgo_PaveFiller_6.cxx b/src/BOPAlgo/BOPAlgo_PaveFiller_6.cxx index b6730c0a30..c805f068cb 100644 --- a/src/BOPAlgo/BOPAlgo_PaveFiller_6.cxx +++ b/src/BOPAlgo/BOPAlgo_PaveFiller_6.cxx @@ -432,6 +432,7 @@ void BOPAlgo_PaveFiller::MakeBlocks() aMPBOnIn.Clear(); aDMBV.Clear(); aMVTol.Clear(); + aLSE.Clear(); // myDS->VerticesOnIn(nF1, nF2, aMVOnIn, aMPBOnIn); myDS->SharedEdges(nF1, nF2, aLSE, aAllocator); diff --git a/tests/bugs/modalg_6/bug27984 b/tests/bugs/modalg_6/bug27984 new file mode 100644 index 0000000000..12ebf64347 --- /dev/null +++ b/tests/bugs/modalg_6/bug27984 @@ -0,0 +1,12 @@ +puts "========" +puts "OCC27984" +puts "========" +puts "" +################################################# +# Volume maker algorithm is unable to build all possible solids from the given faces +################################################# + +restore [locate_data_file bug27984_faces.brep] lf +mkvolume result lf -c +checknbshapes result -solid 28 +checkprops result -s 5.93287e+006 -v 6.99508e+007 -- 2.39.5