
Mon, 11/15/2021 - 00:27
Forums:
Hello, I was working on curves, I created long std::vector
Curve creation code snippet
Handle(TColgp_HArray1OfPnt) cPS;
int nbCP= points.size();
cPS= new TColgp_HArray1OfPnt(1, nbCP);
int index = 1;
for (int i = 0; i < points.size(); ++i)
{
cPS->SetValue(index++, points[i]);
}
GeomAPI_Interpolate INT(cPS, false, 0.001);
INT.Perform();
Handle(Geom_BSplineCurve) curve = INT.Curve();
return curve;
I'm new to occt so sorry If question is too easy.
Thank you.
Fri, 02/25/2022 - 16:05
Hi, I might just have the same problem. Given that it's been a while since you have posted this, I'd be happy to know how you have solved the problem. thanks in advance!