Hello~I'm a beginner of Opencascade.
These days I have a problem about drawing curves in 3D space.
For example, if I want to draw a line with 50 points, TColgp_Array1OfPnt A(1 , 50) can be used.
Then with a loop,
for(int i = 0; i < 50; i++)
A.SetValue(i , gp_Pnt());
Handle(Geom_BSplineCurve) SPL1 = GeomAPI_PointsToBSpline(A,1,1);
That's the situation that I know how many points there.
But if I want to add points to array dynamically, for TColgp_Array1OfPnt A(1 , X), it means that I am not sure about how much X is.
How can I solve this problem?
Do you have any good idea? Thanks a lot! Hope you all have a nice day!