mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-08 14:17:06 +03:00
0026379: Wrong result produced by the volume maker algorithm
1. class BOPAlgo_ShellSplitter static method void RefineShell(TopoDS_Shell& theShell, BOPCol_ListOfShape& aLShX) Added protection from INTERNAL edges. 2. class BOPAlgo_MakerVolume method void BOPAlgo_MakerVolume::MakeBox(BOPCol_MapOfShape& theBoxFaces) Creation of the overlapping box of proper size. Test-cases for issue #26379
This commit is contained in:
@@ -244,7 +244,7 @@ void BOPAlgo_MakerVolume::MakeBox(BOPCol_MapOfShape& theBoxFaces)
|
||||
//
|
||||
Standard_Real aXmin, aYmin, aZmin, aXmax, aYmax, aZmax, anExt;
|
||||
//
|
||||
anExt = myBBox.SquareExtent() * 0.5;
|
||||
anExt = sqrt(myBBox.SquareExtent()) * 0.5;
|
||||
myBBox.Enlarge(anExt);
|
||||
myBBox.Get(aXmin, aYmin, aZmin, aXmax, aYmax, aZmax);
|
||||
//
|
||||
|
Reference in New Issue
Block a user