[Part] Add/change some methods in GeomBSplineCurve
Add `setPeriodic` to turn a b-spline periodic. Allow `join` to join any bounded curve not just b-spline.
This commit is contained in:
committed by
abdullahtahiriyo
parent
36ff50088e
commit
4d2837a6c2
@@ -1374,15 +1374,20 @@ bool GeomBSplineCurve::isPeriodic() const
|
||||
return myCurve->IsPeriodic()==Standard_True;
|
||||
}
|
||||
|
||||
void GeomBSplineCurve::setPeriodic() const
|
||||
{
|
||||
myCurve->SetPeriodic();
|
||||
}
|
||||
|
||||
bool GeomBSplineCurve::isRational() const
|
||||
{
|
||||
return myCurve->IsRational()==Standard_True;
|
||||
}
|
||||
|
||||
bool GeomBSplineCurve::join(const Handle(Geom_BSplineCurve)& spline)
|
||||
bool GeomBSplineCurve::join(const Handle(Geom_BoundedCurve)& other)
|
||||
{
|
||||
GeomConvert_CompCurveToBSplineCurve ccbc(this->myCurve);
|
||||
if (!ccbc.Add(spline, Precision::Approximation()))
|
||||
if (!ccbc.Add(other, Precision::Approximation()))
|
||||
return false;
|
||||
this->myCurve = ccbc.BSplineCurve();
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user