Skip to content

Commit

Permalink
Merge branch 'master' into optimizeLinearSegments_fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gwicke committed Jun 8, 2020
2 parents f6ae7c2 + 8311b1e commit bec4afa
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Mod/Part/App/FeatureFillet.cpp
Expand Up @@ -73,6 +73,18 @@ App::DocumentObjectExecReturn *Fillet::execute(void)
TopoDS_Shape shape = mkFillet.Shape();
if (shape.IsNull())
return new App::DocumentObjectExecReturn("Resulting shape is null");

//shapefix re #4285
//https://www.forum.freecadweb.org/viewtopic.php?f=3&t=43890&sid=dae2fa6fda71670863a103b42739e47f
TopoShape* ts = new TopoShape(shape);
double minTol = 2.0 * Precision::Confusion();
double maxTol = 4.0 * Precision::Confusion();
bool rc = ts->fix(Precision::Confusion(), minTol, maxTol);
if (rc) {
shape = ts->getShape();
}
delete ts;

ShapeHistory history = buildHistory(mkFillet, TopAbs_FACE, shape, baseShape);
this->Shape.setValue(shape);

Expand Down

0 comments on commit bec4afa

Please sign in to comment.