- std::shared_ptr<GeomAPI_Circ2d> aFilletCircle(
- new GeomAPI_Circ2d(aShapeA, aShapeB, theFilletRadius, theSketchPlane));
- if (!aFilletCircle->implPtr<char>())
+ GeomAlgoAPI_Circ2dBuilder aCircBuilder(theSketchPlane);
+ aCircBuilder.addTangentCurve(aShapeA);
+ aCircBuilder.addTangentCurve(aShapeB);
+ aCircBuilder.setRadius(theFilletRadius);
+
+ std::shared_ptr<GeomAPI_Circ2d> aFilletCircle = aCircBuilder.circle();
+ if (!aFilletCircle)