GeomBSplineCurve::interpolate
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
GeomBSplineCurve::interpolate
Null vectors from GeomBSplineCurve::interpolate will ignored, or how I disable the load function?
Re: GeomBSplineCurve::interpolate
It's not completely clear what this method does. Could you add comments and documentation?
My latest (or last) project: B-spline Construction Project.
Re: GeomBSplineCurve::interpolate
Thanks for the response. I'm add a description to header and make periodic selectable, See the same commit. Untested example:
Code: Select all
std::vector<gp_Pnt> pts { {0.,0.,0.}, {0.,5.,2,}, {0.,10.,3.}, {0.,4.,4.}};
Part::GeomBSplineCurve bsp = Part::GeomBSplineCurve();
bsp.interpolate(pts);
Part::Feature *obj = (Part::Feature *)Document->addObject("Part::Feature", "Spline");
obj->Shape.setValue(bsp.toShape());