Part: Add overloaded methods of GeomBSplineCurve::approximate

This commit is contained in:
wmayer
2024-04-03 10:43:06 +02:00
committed by wwmayer
parent e64af14325
commit 7a7c0081c3
4 changed files with 114 additions and 20 deletions

View File

@@ -6508,9 +6508,7 @@ bool SketchObject::decreaseBSplineDegree(int GeoId, int degreedecrement /*= 1*/)
int maxdegree = cdegree - degreedecrement;
if (maxdegree == 0)
return false;
bool ok = bspline->approximate(Precision::Confusion(), 20, maxdegree, 0);
if (!ok)
return false;
bspline->approximate(Precision::Confusion(), 20, maxdegree, GeomAbs_C0);
}
catch (const Base::Exception& e) {
Base::Console().Error("%s\n", e.what());