Skip to content

Commit

Permalink
Part: fix FaceMakerBullseye plane finding
Browse files Browse the repository at this point in the history
Copy the shape to work around OCC circular edge transformation bug
  • Loading branch information
realthunder authored and wwmayer committed Jul 31, 2020
1 parent 989519e commit 488419c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Mod/Part/App/FaceMakerBullseye.cpp
Expand Up @@ -45,6 +45,7 @@
# include <TopExp_Explorer.hxx>
# include <TopTools_IndexedMapOfShape.hxx>
# include <TopTools_HSequenceOfShape.hxx>
# include <BRepBuilderAPI_Copy.hxx>
# include <QtGlobal>
#endif

Expand Down Expand Up @@ -96,7 +97,7 @@ void FaceMakerBullseye::Build_Essence()
TopoDS_Compound comp;
builder.MakeCompound(comp);
for(TopoDS_Wire &w : myWires){
builder.Add(comp, w);
builder.Add(comp, BRepBuilderAPI_Copy(w).Shape());
}
BRepLib_FindSurface planeFinder(comp,-1, /*OnlyPlane=*/Standard_True);
if (!planeFinder.Found())
Expand Down

0 comments on commit 488419c

Please sign in to comment.