[Part] Support insertion of knots in b-splines
This commit is contained in:
committed by
abdullahtahiriyo
parent
7a85baa7eb
commit
ff2e246a55
@@ -1530,6 +1530,18 @@ void GeomBSplineCurve::increaseMultiplicity(int index, int multiplicity)
|
||||
curve->IncreaseMultiplicity(index, multiplicity);
|
||||
return;
|
||||
}
|
||||
catch (Standard_Failure& e) {
|
||||
THROWM(Base::CADKernelError,e.GetMessageString())
|
||||
}
|
||||
}
|
||||
|
||||
void GeomBSplineCurve::insertKnot(double param, int multiplicity)
|
||||
{
|
||||
try {
|
||||
Handle(Geom_BSplineCurve) curve = Handle(Geom_BSplineCurve)::DownCast(this->handle());
|
||||
curve->InsertKnot(param, multiplicity);
|
||||
return;
|
||||
}
|
||||
catch (Standard_Failure& e) {
|
||||
THROWM(Base::CADKernelError,e.GetMessageString())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user