How to extend the 2dCurve to point

Hi body,
"GeomLib::ExtendCurveToPoint" can extend the 3dCurve to point, but I have a 2dCurve and I want to extend it to a point. Who can help me?

Sincerely,
Angel

Stephane Routelous's picture

Hi,

Workaround :
you can convert your curve in 3d, do the work in 3d and convert it back to 2d.

Stephane Routelous's picture

Or better:

I've checked the code for GeomLib::ExtendCurveToPoint.
It doens't use special classes. all the computation is done with BSpline Curves in this function.
I think it is not a big amound of work to copy/paste the code and instead of working with 3d entities, use 2d curves.

angel's picture

Hi Stephane,
Thank you for you reply, I have checked "GeomLib::ExtendCurveToPoint". I feel it is a litte nuisance, because if I modify this function to 2d curve and I also need to modify "GeomConvert_CompCurveToBSplineCurve". So I decide to convert my curve in 3d, do the work in 3d and convert it back to 2d.
Sincerely,
Angel