Part: Geometry add support for getting the number of knots in a B-Spline

This commit is contained in:
Abdullah Tahiri
2017-02-23 23:55:52 +01:00
committed by wmayer
parent 2369112fb5
commit 409cbb7199
2 changed files with 6 additions and 0 deletions

View File

@@ -646,6 +646,11 @@ int GeomBSplineCurve::countPoles() const
return myCurve->NbPoles();
}
int GeomBSplineCurve::countKnots() const
{
return myCurve->NbKnots();
}
void GeomBSplineCurve::setPole(int index, const Base::Vector3d& pole, double weight)
{
try {

View File

@@ -214,6 +214,7 @@ public:
std::vector<gp_Vec>&) const;
int countPoles() const;
int countKnots() const;
void setPole(int index, const Base::Vector3d&, double weight=-1);
void setPoles(const std::vector<Base::Vector3d>& poles, const std::vector<double>& weights);
void setPoles(const std::vector<Base::Vector3d>& poles);