Intersection with polyline

Hi,

I'am new in Opencascade. I'am working on application which use OCC to perform intersections.

So a code is already made by my predecessor. The code convert our objects into Handle of Geom_Curve.

Now I need to convert a polyline into Geom_Curve, I saw the class ShapeExtend_ComplexCurve but I have no idea

to fill this class with points of my polyline.

Am I wrong ?

Thanks.

Sorry for my bad english.

Thorsten H.'s picture

Hi,

ShapeExtend_ComplexCurve is an abstract class. Try BRepBuilderAPI_MakePolygon​ instead to build a TopoDS_Wire. If you need a Geom_Curve have a look at BRepAdaptor_CompCurve​.

Thorsten