DiscussionsIssue archiveModeling Data and Algorithms

Archived discussion

Intersection with polyline

Modeling Data and AlgorithmsTue, 04/26/2016 - 19:041 reply

Browse this forum
QuestionAuthor

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.

Discussion

1 archived reply

Posts are displayed in their archived order.

01Commenter-1

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​.

Commenter-1