B SPLINE CURVE TO LINE EDGE

I want to use in my software Geom_Line edge. But when i see the type of Geom_Line edge, it is defined as  GeomAbs_BSplineCurve edge.

How can i use Geom_Line edge if it is kept as GeomAbs_BSplineCurve ?

Thank you 

Guido van Hilst not specified's picture

You have to analyze the GeomAbs_BSplineCurve to see that it represent a line.

This can be done in several ways:...

Then you can make a new Geom_Line form the start/end points of the curve.

Opencascade also have a lib for this: see: https://www.opencascade.com/content/canonical-recognition