Extending Curves

Hi, I have 2 questions about curve extention
1- When I try GeomLib::ExtendCurveToPoint for curves of type GeomAbs_Line, I get segmentation fault. Is it a bug? And is there a way to convert GeomAbs_Line to other types?
2- Is there a way to extend curves with lengths (ExtendCurveByLength) instead of using points (like in GeomLib::ExtendSurfByLength)
Thanks in advance

Mauro Mariotti's picture

2- I have done it this way:

a. Evaluate the curve tangent unit vector in the end to extend
b. Compute a point at the given distance from the curve end, along the tangent
c. Call GeomLib::ExtendCurveToPoint, with continuity 1.