+ updated refinement algorithm (tanderson69)
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5362 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
This commit is contained in:
parent
c6de527391
commit
00030a71c0
|
@ -45,6 +45,8 @@
|
|||
#include <TopTools_ListOfShape.hxx>
|
||||
#include <TopTools_MapOfShape.hxx>
|
||||
#include <TopTools_ListIteratorOfListOfShape.hxx>
|
||||
#include <TopTools_IndexedDataMapOfShapeShape.hxx>
|
||||
#include <TopTools_DataMapIteratorOfDataMapOfShapeShape.hxx>
|
||||
#include <BRepTools.hxx>
|
||||
#include <BRep_Builder.hxx>
|
||||
#include <Bnd_Box.hxx>
|
||||
|
@ -523,6 +525,14 @@ bool FaceUniter::process()
|
|||
}
|
||||
|
||||
BRepLib_FuseEdges edgeFuse(workShell, Standard_True);
|
||||
TopTools_DataMapOfShapeShape affectedFaces;
|
||||
edgeFuse.Faces(affectedFaces);
|
||||
TopTools_DataMapIteratorOfDataMapOfShapeShape mapIt;
|
||||
for (mapIt.Initialize(affectedFaces); mapIt.More(); mapIt.Next())
|
||||
{
|
||||
ShapeFix_Face faceFixer(TopoDS::Face(mapIt.Value()));
|
||||
faceFixer.Perform();
|
||||
}
|
||||
workShell = TopoDS::Shell(edgeFuse.Shape());
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue
Block a user