Part: Geometry add support for getting the number of knots in a B-Spline
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user