Sketcher: BSpline Increase Degree tool
This commit is contained in:
@@ -892,6 +892,19 @@ void GeomBSplineCurve::makeC1Continuous(double tol, double ang_tol)
|
||||
GeomConvert::C0BSplineToC1BSplineCurve(this->myCurve, tol, ang_tol);
|
||||
}
|
||||
|
||||
void GeomBSplineCurve::increaseDegree(const double Degree)
|
||||
{
|
||||
try {
|
||||
Handle_Geom_BSplineCurve curve = Handle_Geom_BSplineCurve::DownCast(this->handle());
|
||||
curve->IncreaseDegree(Degree);
|
||||
return;
|
||||
}
|
||||
catch (Standard_Failure) {
|
||||
Handle_Standard_Failure e = Standard_Failure::Caught();
|
||||
throw Base::RuntimeError(e->GetMessageString());
|
||||
}
|
||||
}
|
||||
|
||||
// Persistence implementer
|
||||
unsigned int GeomBSplineCurve::getMemSize (void) const
|
||||
{
|
||||
|
||||
@@ -228,6 +228,8 @@ public:
|
||||
bool join(const Handle_Geom_BSplineCurve&);
|
||||
void makeC1Continuous(double, double);
|
||||
std::list<Geometry*> toBiArcs(double tolerance) const;
|
||||
|
||||
void increaseDegree(const double Degree);
|
||||
|
||||
// Persistence implementer ---------------------
|
||||
virtual unsigned int getMemSize(void) const;
|
||||
|
||||
Reference in New Issue
Block a user